diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-10-15 15:23:24 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-10-15 15:23:24 -0300 |
commit | af7445f4f421cafcaa845c11495cab6ed5d8dcfd (patch) | |
tree | 9576194c6b1890fc2cad3f02af8a8aa2fb00d8b9 /test/unit/data/things/flash.js | |
parent | f8b20adb7c599307bdff9f06ab92b9d337621b0b (diff) |
test: obliterate wholescale thing surface tests
Diffstat (limited to 'test/unit/data/things/flash.js')
-rw-r--r-- | test/unit/data/things/flash.js | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/test/unit/data/things/flash.js b/test/unit/data/things/flash.js deleted file mode 100644 index de39e80d..00000000 --- a/test/unit/data/things/flash.js +++ /dev/null @@ -1,40 +0,0 @@ -import t from 'tap'; - -import thingConstructors from '#things'; - -import { - linkAndBindWikiData, - stubThing, - stubWikiData, -} from '#test-lib'; - -t.test(`Flash.color`, t => { - const {Flash, FlashAct} = thingConstructors; - - t.plan(4); - - const wikiData = stubWikiData(); - - const flash = stubThing(wikiData, Flash, {directory: 'my-flash'}); - const flashAct = stubThing(wikiData, FlashAct, {flashes: ['flash:my-flash']}); - - const {XXX_decacheWikiData} = linkAndBindWikiData(wikiData); - - t.equal(flash.color, null, - `color #1: defaults to null`); - - flashAct.color = '#abcdef'; - XXX_decacheWikiData(); - - t.equal(flash.color, '#abcdef', - `color #2: inherits from flash act`); - - flash.color = '#123456'; - - t.equal(flash.color, '#123456', - `color #3: is own value`); - - t.throws(() => { flash.color = '#aeiouw'; }, - {cause: TypeError}, - `color #4: must be set to valid color`); -}); |