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
8b6cb15
commit 1712cf5
Showing
14 changed files
with
38 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
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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
## From the project root run | ||
|
||
```shell | ||
npm run test | ||
npm run test:node | ||
``` | ||
|
||
![](./node.gif) | ||
|
File renamed without changes
File renamed without changes
File renamed without changes
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,16 @@ | ||
{ | ||
"name": "@after-work.js/example-node-ts", | ||
"private": true, | ||
"version": "5.0.0-beta.2", | ||
"description": "Node example with typescript", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/qlik-oss/after-work.js.git" | ||
}, | ||
"author": "QlikTech International AB", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/qlik-oss/after-work.js/issues" | ||
}, | ||
"homepage": "https://github.com/qlik-oss/after-work.js#readme" | ||
} |
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,7 @@ | ||
export default class Dummy { | ||
private privateMethod() {} | ||
protected protectedMethod() {} | ||
publicMethod() { | ||
return 'dummy'; | ||
} | ||
} |
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,9 @@ | ||
import { expect } from 'chai'; | ||
import Dummy from '../src/dummy'; | ||
|
||
describe('Dummy', () => { | ||
it('should work with typescript', () => { | ||
const dummy = new Dummy(); | ||
expect(dummy.publicMethod()).to.equal('dummy'); | ||
}); | ||
}); |