Skip to content

Commit

Permalink
add test command
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesadarich committed Jan 3, 2017
1 parent 9af4ea3 commit e12ac20
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "src/karma-alsatian.js",
"scripts": {
"build": "tsc",
"test": "echo \"Error: no test specified\" && exit 1"
"pretest": "npm run build",
"test": "alsatian \"./test/**/*.spec.js\""
},
"repository": {
"type": "git",
Expand Down
10 changes: 10 additions & 0 deletions test/unit-tests/example.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { TestFixture, Test, Expect } from "alsatian";

@TestFixture("example")
export default class ExampleTestFixture {

@Test("example test")
public exampleTest() {
Expect(2 + 2).toBe(4);
}
}

0 comments on commit e12ac20

Please sign in to comment.