MCPcopy Index your code
hub / github.com/bugy/script-server / runSchedulingConfigTest

Function runSchedulingConfigTest

web-src/tests/unit/admin/ScriptConfig_test.js:90–105  ·  view source on GitHub ↗
(
            config,
            expectedEnabled,
            expectedAutoCleanup,
            expectedCleanupDisabled,
            expectedValue)

Source from the content-addressed store, hash-verified

88 });
89
90 async function runSchedulingConfigTest(
91 config,
92 expectedEnabled,
93 expectedAutoCleanup,
94 expectedCleanupDisabled,
95 expectedValue) {
96 store.state.scriptConfig.scriptConfig = config;
97
98 await vueTicks();
99
100 expect(_findField('Enabled').value).toBe(expectedEnabled)
101 expect(_findField('Auto cleanup').value).toBe(expectedAutoCleanup)
102 expect(_findField('Auto cleanup').disabled).toBe(expectedCleanupDisabled)
103
104 expect(store.state.scriptConfig.scriptConfig.scheduling).toEqual(expectedValue)
105 }
106
107 it('Test show scheduling when no config', async function () {
108 await runSchedulingConfigTest(

Callers 1

Calls 2

vueTicksFunction · 0.90
_findFieldFunction · 0.70

Tested by

no test coverage detected