chore: small changes
This commit is contained in:
@@ -9,13 +9,10 @@ describe('resources', function () {
|
|||||||
it('show', function () {
|
it('show', function () {
|
||||||
localStorage.clear()
|
localStorage.clear()
|
||||||
localStorage.setItem('testKey', 'testVal')
|
localStorage.setItem('testKey', 'testVal')
|
||||||
$tool.find('.eruda-local-storage .eruda-refresh-storage').click()
|
|
||||||
expect($tool.find('.eruda-local-storage')).toContainText('testKey')
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('clear', function () {
|
it('clear', function () {
|
||||||
$tool.find('.eruda-local-storage .eruda-clear-storage').click()
|
$tool.find('.eruda-local-storage .eruda-clear-storage').click()
|
||||||
expect($tool.find('.eruda-local-storage')).toContainText('Empty')
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -23,13 +20,10 @@ describe('resources', function () {
|
|||||||
it('show', function () {
|
it('show', function () {
|
||||||
sessionStorage.clear()
|
sessionStorage.clear()
|
||||||
sessionStorage.setItem('testKey', 'testVal')
|
sessionStorage.setItem('testKey', 'testVal')
|
||||||
$tool.find('.eruda-session-storage .eruda-refresh-storage').click()
|
|
||||||
expect($tool.find('.eruda-session-storage')).toContainText('testKey')
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('clear', function () {
|
it('clear', function () {
|
||||||
$tool.find('.eruda-session-storage .eruda-clear-storage').click()
|
$tool.find('.eruda-session-storage .eruda-clear-storage').click()
|
||||||
expect($tool.find('.eruda-session-storage')).toContainText('Empty')
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -37,12 +31,10 @@ describe('resources', function () {
|
|||||||
it('show', function () {
|
it('show', function () {
|
||||||
util.cookie.set('testKey', 'testVal')
|
util.cookie.set('testKey', 'testVal')
|
||||||
$tool.find('.eruda-refresh-cookie').click()
|
$tool.find('.eruda-refresh-cookie').click()
|
||||||
expect($tool.find('.eruda-cookie')).toContainText('testKey')
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('clear', function () {
|
it('clear', function () {
|
||||||
$tool.find('.eruda-clear-cookie').click()
|
$tool.find('.eruda-clear-cookie').click()
|
||||||
expect($tool.find('.eruda-cookie')).toContainText('Empty')
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user