mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-24 09:48:37 +08:00
Add remove setting api
This commit is contained in:
@@ -67,4 +67,12 @@ describe('settings', function() {
|
||||
.click()
|
||||
expect(cfg.get('testColor')).toBe('rgb(0, 0, 0)')
|
||||
})
|
||||
|
||||
it('remove', function () {
|
||||
let text = 'Test Switch'
|
||||
tool.switch(cfg, 'testSwitch', text)
|
||||
expect($tool.find('.eruda-switch')).toContainText(text)
|
||||
tool.remove(cfg, 'testSwitch')
|
||||
expect($tool.find('.eruda-switch')).toHaveLength(0)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user