Add initial spec for cookies.flushStore
This commit is contained in:
parent
fe88697348
commit
8f0ac057e3
1 changed files with 15 additions and 0 deletions
|
@ -219,6 +219,21 @@ describe('session module', function () {
|
||||||
if (error) return done(error)
|
if (error) return done(error)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('ses.cookies.flushStore(callback)', function () {
|
||||||
|
it('flushes the cookies to disk and invokes the callback when done', function (done) {
|
||||||
|
session.defaultSession.cookies.set({
|
||||||
|
url: url,
|
||||||
|
name: 'foo',
|
||||||
|
value: 'bar'
|
||||||
|
}, (error) => {
|
||||||
|
if (error) return done(error)
|
||||||
|
session.defaultSession.cookies.flushStore(() => {
|
||||||
|
done()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('ses.clearStorageData(options)', function () {
|
describe('ses.clearStorageData(options)', function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue