-
Notifications
You must be signed in to change notification settings - Fork 55
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
Showing
10 changed files
with
93 additions
and
15 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"corsProxy": "https://bubblesort.me/?" | ||
} |
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 @@ | ||
import { | ||
Source | ||
} from '../Source'; | ||
|
||
import { | ||
blheliSource, | ||
} from '../index'; | ||
|
||
test('Source without parameters', () => { | ||
try { | ||
const source = new Source(); | ||
} catch(e) { | ||
expect(e).not.toBeNull(); | ||
} | ||
}); | ||
|
||
test('blheliSource get versions', async() => { | ||
let versions = await blheliSource.getVersions(); | ||
expect(versions).not.toBe({}); | ||
}); | ||
|
||
test('blheliSource get escs', async() => { | ||
const escs = await blheliSource.getEscs(); | ||
expect(escs).not.toBe({}); | ||
}); | ||
|
||
test('blheliSource get platform', async() => { | ||
const platform = await blheliSource.getPlatform(); | ||
expect(platform).toBe(0); | ||
}); | ||
|
||
test('blheliSource get platform', async() => { | ||
const name = await blheliSource.getName(); | ||
expect(name).toBe('Blheli'); | ||
}); | ||
|
||
test('blheliSource get platform', async() => { | ||
const pwm = await blheliSource.getPwm(); | ||
expect(pwm.length).toBe(0); | ||
}); |
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