mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
test: retain radio schema and voice mutation checks after formatting
This commit is contained in:
1 parent
a64a622b6d
commit
233285fe12
2 files changed
+5
-5
No files matched your search
@@ -276,7 +276,7 @@ test('panel collapse is presentation-only and Radio exposes explicit voice playb
|
||||
assert.match(voice, /'radio-panel'/);
|
||||
assert.match(voice, /'radio'/);
|
||||
assert.match(voice, /name:\s*'control_radio'/);
|
||||
assert.match(voice, /enum:\s*\['enable', 'disable', 'play', 'resume', 'pause', 'stop', 'next', 'previous', 'volume', 'select', 'status'\]/);
|
||||
assert.deepEqual(realtimeTools().find(tool => tool.name === 'control_radio').parameters.properties.action.enum, ['enable', 'disable', 'play', 'resume', 'pause', 'stop', 'next', 'previous', 'volume', 'select', 'status']);
|
||||
const enableStart = ui.lastIndexOf('\n _initRadioPanel()');
|
||||
const enableMethod = ui.slice(enableStart, ui.indexOf('\n _renderRadioState(state)', enableStart));
|
||||
assert.doesNotMatch(enableMethod, /playSelectedRadio|togglePlayback\(\).*radio-enable/i);
|
||||
|
||||
Reference in new issue
Block a user