-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f16aef0
commit e65c1d8
Showing
5 changed files
with
29 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
describe(':for typescript', function () { | ||
it('', async () => { | ||
|
||
import Index, {type} from '../src/index'; | ||
import * as assert from 'assert'; | ||
|
||
describe('', () => { | ||
it('', () => { | ||
assert.strictEqual(new Index().constructor.name, 'Index'); | ||
assert.strictEqual(type, 'typescript'); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
{ | ||
"scripts": { | ||
"compile": "tsc --project tsconfig.json", | ||
"test": "jest" | ||
"test": "jest", | ||
"mocha-test": "ts-mocha test/*" | ||
}, | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"devDependencies": { | ||
"@types/jest": "latest", | ||
"@typescript-eslint/eslint-plugin": "latest", | ||
"@typescript-eslint/parser": "latest", | ||
"eslint": "latest", | ||
"jest": "latest", | ||
"ts-jest": "latest", | ||
"@types/jest": "latest", | ||
"ts-mocha": "latest", | ||
"typescript": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default class Index { | ||
constructor() { | ||
} | ||
} | ||
export const type = 'typescript'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"include": [ | ||
"__tests__/" | ||
"__tests__/", | ||
"test" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import * as assert from 'assert'; | ||
import Index, {type} from '../src'; | ||
|
||
describe('', () => { | ||
it('', () => { | ||
assert.strictEqual(new Index().constructor.name, 'Index'); | ||
assert.strictEqual(type, 'typescript'); | ||
}); | ||
|
||
}); |