Skip to content

Commit

Permalink
Test for improved ES6 detection, monounity/karma-typescript-es6-trans…
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbarke committed May 18, 2017
1 parent 59f2714 commit f5639c5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration-latest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"codemirror": "^5.25.2",
"core-js": "^2.4.1",
"d3-ng2-service": "^1.9.0",
"delay": "^2.0.0",
"enzyme": "^2.7.1",
"flexboxgrid": "^6.3.1",
"globals": "^9.17.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ describe("Es6TransformTester", () => {
it("should import lodash-es", () => {
expect(tester.testLodashEs()).toEqual(3);
});

it("should require delay", () => {
expect(tester.testDelay()).toEqual("function");
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ export class Es6TransformTester {

return last;
}

public testDelay(): string {
// delay has classes and consts, requires 'p-defer' which has nested consts
let delay = require("delay");
return typeof delay;
}
}

0 comments on commit f5639c5

Please sign in to comment.