Skip to content

Instantly share code, notes, and snippets.

@Farenheith
Created February 20, 2020 02:20
Show Gist options
  • Save Farenheith/de9e9b24d0ff0d24456030b342562e28 to your computer and use it in GitHub Desktop.
Save Farenheith/de9e9b24d0ff0d24456030b342562e28 to your computer and use it in GitHub Desktop.
Test for unstestable-wrapper
import { expect } from 'chai';
import * as wrapper from '../src/untestable-wrapper';
import untestableOldFunction = require('untestable-old-function');
describe('untestable-wrapper', () => {
it('should export untestableOldFunction as nowTestableOldFunction', () => {
expect(wrapper.nowTestableOldFunction).to.be.eq(untestableOldFunction);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment