Skip to content

Commit

Permalink
Add a very simple test for the TypeScript types
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed May 31, 2019
1 parent c54a06f commit 9ab505f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"node": ">= 0.6.0"
},
"scripts": {
"test": "grunt test",
"test": "grunt test && tsc --noEmit ./test/type-test.ts",
"ci": "grunt ci",
"dist": "grunt dist",
"watch": "grunt watch"
Expand All @@ -46,7 +46,8 @@
"grunt-saucelabs": "^8.2.0",
"grunt-template-jasmine-istanbul": "~0.2.5",
"grunt-template-jasmine-requirejs": "~0.1.6",
"qunitjs": "1.14.0"
"qunitjs": "1.14.0",
"typescript": "^3.5.1"
},
"keywords": [
"log",
Expand Down
5 changes: 5 additions & 0 deletions test/type-test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import * as log from '..';

log.setLevel('warn');
log.warn('Test warning');

0 comments on commit 9ab505f

Please sign in to comment.