forked from sthufnagl/ioBroker.robonect
-
Notifications
You must be signed in to change notification settings - Fork 4
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
97ae25e
commit 66be900
Showing
4 changed files
with
62 additions
and
13 deletions.
There are no files selected for viewing
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,30 @@ | ||
'use strict'; | ||
|
||
/** | ||
* This is a dummy TypeScript test file using chai and mocha | ||
* | ||
* It's automatically excluded from npm and its build output is excluded from both git and npm. | ||
* It is advised to test all your modules with accompanying *.test.js-files | ||
*/ | ||
|
||
// tslint:disable:no-unused-expression | ||
|
||
const { expect } = require('chai'); | ||
// import { functionToTest } from "./moduleToTest"; | ||
|
||
describe('module to test => function to test', () => { | ||
// initializing logic | ||
const expected = 5; | ||
|
||
it(`should return ${expected}`, () => { | ||
const result = 5; | ||
// assign result a value from functionToTest | ||
expect(result).to.equal(expected); | ||
// or using the should() syntax | ||
result.should.equal(expected); | ||
}); | ||
// ... more tests => it | ||
|
||
}); | ||
|
||
// ... more test suites => describe |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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