Fixing export to match package

chai-jest-snapshots doesn't use `export default`, so
`import * as chaiJestSnapshots from 'chai-jest-snapshots'` gives compiler errors and
`import chaiJestSnapshots from 'chai-jest-snapshots'` gives runtime errors
This commit is contained in:
Matthew Bull
2018-05-09 14:54:57 +01:00
parent e199aed403
commit 233bdad5ad
2 changed files with 2 additions and 2 deletions
@@ -1,4 +1,4 @@
import chaiJestSnapshot from 'chai-jest-snapshot';
import * as chaiJestSnapshot from 'chai-jest-snapshot';
import { expect } from 'chai';
chai.use(chaiJestSnapshot);
+1 -1
View File
@@ -40,4 +40,4 @@ interface ChaiJestSnapshot {
}
declare var ChaiJestSnapshot: ChaiJestSnapshot;
export default ChaiJestSnapshot;
export = ChaiJestSnapshot;