Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Bootstrap tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smashwilson committed Mar 14, 2018
1 parent f4d6163 commit 31a815a
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 3 deletions.
57 changes: 57 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,19 @@
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"mocha": "^5.0.4",
"ts-node": "^5.0.1",
"tslint": "^5.9.1",
"typescript": "^2.7.2"
},
"scripts": {
"build:ts": "tsc",
"lint": "tslint --config tslint.json --project tsconfig.json",
"watch:ts": "tsc --watch",

"ci:travis": "npm run test",
"ci:circle:test": "npm run test",
"ci:circle:lint": "npm run lint",
"ci:appveyor": "npm run test",

"test": "mocha"
"test": "mocha --require ts-node/register test/**/*.ts"
},
"repository": {
"type": "git",
Expand Down
8 changes: 8 additions & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {assert} from "chai";
import hello from "../src/index";

describe("hello", () => {
it("returns a string", () => {
assert.strictEqual(hello(), "I'm alive");
});
});

0 comments on commit 31a815a

Please sign in to comment.