Skip to content

Instantly share code, notes, and snippets.

@PlasmaPower
Created March 6, 2017 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PlasmaPower/4a59544f4e631e32515f927eef8a08a3 to your computer and use it in GitHub Desktop.
Save PlasmaPower/4a59544f4e631e32515f927eef8a08a3 to your computer and use it in GitHub Desktop.
const fs = require('fs');
describe('testing', () => {
it('should work', () => {
try {
fs.readFileSync('does not exist');
} catch (err) {
expect(err).toBeInstanceOf(Error);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment