Skip to content

Commit bf0fc39

Browse files
committed
Move test files into separated directory
1 parent 3573478 commit bf0fc39

File tree

5 files changed

+30
-6
lines changed

5 files changed

+30
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"coverage": "nyc npm run test",
3333
"coverage:ci": "npm run coverage && nyc report --reporter=text-lcov | coveralls",
3434
"test": "mocha --recursive --compilers ts:ts-node/register src/**/*.spec.ts",
35-
"tslint": "tslint --fix src/**/*.ts",
35+
"tslint": "tslint --fix src/**/*.ts test/**/*.ts",
3636
"preversion": "git push && npm test",
3737
"version": "npm run compile && git add -A dist",
3838
"postversion": "git push && git push --tags"

src/JwtHandler.spec.ts renamed to test/JwtHandler.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import * as chaiAsPromised from "chai-as-promised"
33
import * as jwt from "jsonwebtoken"
44
import "mocha"
55

6-
import {JwtHandler, PrivkeyData, PubkeyData} from "./JwtHandler"
7-
import {MissingKeyIdError} from "./MissingKeyIdError"
8-
import {UnknownKeyIdError} from "./UnknownKeyIdError"
6+
import {JwtHandler, PrivkeyData, PubkeyData} from "../src/JwtHandler"
7+
import {MissingKeyIdError} from "../src/MissingKeyIdError"
8+
import {UnknownKeyIdError} from "../src/UnknownKeyIdError"
99

1010
chai.use(chaiAsPromised)
1111
const {expect} = chai

src/MissingKeyIdError.spec.ts renamed to test/MissingKeyIdError.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as chai from "chai"
22
import * as jwt from "jsonwebtoken"
33
import "mocha"
44

5-
import {MissingKeyIdError} from "./MissingKeyIdError"
5+
import {MissingKeyIdError} from "../src/MissingKeyIdError"
66

77
const {expect} = chai
88

src/UnknownKeyIdError.spec.ts renamed to test/UnknownKeyIdError.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as chai from "chai"
22
import * as jwt from "jsonwebtoken"
33
import "mocha"
44

5-
import {UnknownKeyIdError} from "./UnknownKeyIdError"
5+
import {UnknownKeyIdError} from "../src/UnknownKeyIdError"
66

77
const {expect} = chai
88

test/tslint.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extends": "tslint:latest",
3+
"rules": {
4+
"interface-name": false,
5+
"object-literal-sort-keys": false,
6+
"semicolon": [
7+
true,
8+
"never"
9+
],
10+
"indent": [true, "spaces", 4],
11+
"trailing-comma": [
12+
true,
13+
{
14+
"multiline": {
15+
"objects": "always",
16+
"arrays": "always",
17+
"functions": "never",
18+
"typeLiterals": "never"
19+
}
20+
}
21+
],
22+
"no-implicit-dependencies": [true, "dev"]
23+
}
24+
}

0 commit comments

Comments
 (0)