1
0
mirror of synced 2025-11-06 04:21:11 +08:00

chore: small changes

This commit is contained in:
redhoodsu
2023-01-19 18:03:57 +08:00
parent eee1278385
commit 80c742b785

View File

@@ -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')
}) })
}) })
}) })