-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #280 from Grizzelbee/development
v3.1.9
- Loading branch information
Showing
9 changed files
with
102 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# exclude all dot-files and directories | ||
.* | ||
|
||
.git | ||
.idea | ||
node_modules/ | ||
|
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
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,40 @@ | ||
'use strict'; | ||
|
||
const { expect } = require('chai'); | ||
|
||
const { | ||
getDatapoint, | ||
getNameToDysoncodeTranslation | ||
} = require('./dysonConstants'); | ||
|
||
describe('dysonConstants', () => { | ||
describe('getDatapoint', () => { | ||
context('given a dyson code', () => { | ||
it('returns the corresponding datapoint', () => { | ||
const datapoint = getDatapoint('fpwr'); | ||
expect(datapoint).to.be.an('object'); | ||
}); | ||
}); | ||
context('given a non dyson code', () => { | ||
it('returns undefined', () => { | ||
const datapoint = getDatapoint('MainPower'); | ||
expect(datapoint).to.equal(undefined); | ||
}); | ||
}); | ||
}); | ||
|
||
describe('getNameToDysoncodeTranslation', () => { | ||
context('given a dyson code', () => { | ||
it('returns undefined', () => { | ||
const datapoint = getNameToDysoncodeTranslation('fpwr'); | ||
expect(datapoint).to.equal(undefined); | ||
}); | ||
}); | ||
context('given a non dyson code', () => { | ||
it('returns the corresponding dyson code', () => { | ||
const datapoint = getNameToDysoncodeTranslation('MainPower'); | ||
expect(datapoint).to.be.a('string'); | ||
}); | ||
}); | ||
}); | ||
}); |
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