import test from 'unit.js' ; import { RepositoryError } from '../exceptions' ; describe ( 'Test Exceptions' , ( ) => { it ( 'RepositoryError' , done => { const error = RepositoryError ( Error ( 'Some Caught Error' ) ) ; test . value ( error instanceof Error ) . is ( true ) ; done ( ) ; } ) ; } ) ;