mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
parent
e3b44a69a9
commit
465194258b
1 changed files with 13 additions and 0 deletions
13
src/lib/config.test.ts
Normal file
13
src/lib/config.test.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { testAll, testAllObject } from "@src/lib/test_utils"
|
||||
import { canonicaliseMapstr } from "@src/lib/keyseq"
|
||||
import { default_config } from "@src/lib/config"
|
||||
import { zip } from "ramda"
|
||||
|
||||
const config = new default_config()
|
||||
// todo: test subconfigs and platform_defaults
|
||||
const nmaps = Object.keys(config.nmaps)
|
||||
|
||||
for (let mode of Object.keys(config).filter(x=>x.match(/maps$/))) {
|
||||
const mapstrings = Object.keys(config[mode])
|
||||
testAll(canonicaliseMapstr, zip(mapstrings, mapstrings))
|
||||
}
|
Loading…
Add table
Reference in a new issue