self-review
This commit is contained in:
parent
8dae81e29d
commit
9b53879e70
9 changed files with 8 additions and 29 deletions
3
test/fixtures/worker.js
vendored
3
test/fixtures/worker.js
vendored
|
|
@ -2,7 +2,4 @@ import { setupWorker } from 'msw/browser'
|
|||
|
||||
export const worker = setupWorker()
|
||||
|
||||
console.log('=============== TEST ===============')
|
||||
console.log(window.__test__)
|
||||
console.log('=============== TEST ===============')
|
||||
window.__test__ = window.__test__ || 'TEST'
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ describe('The lists store', () => {
|
|||
HttpResponse.json({ ok: true }),
|
||||
),
|
||||
)
|
||||
console.log('1 =========', worker.listHandlers())
|
||||
|
||||
await store.setList({ listId: list.id, title: list.title })
|
||||
expect(store.allListsObject[list.id]).to.eql({
|
||||
|
|
@ -46,8 +45,6 @@ describe('The lists store', () => {
|
|||
expect(store.allLists).to.have.length(1)
|
||||
expect(store.allLists[0]).to.eql(list)
|
||||
|
||||
console.log('2 =========', worker.listHandlers())
|
||||
|
||||
await store.setList({ listId: modList.id, title: modList.title })
|
||||
expect(store.allListsObject[modList.id]).to.eql({
|
||||
title: modList.title,
|
||||
|
|
@ -55,8 +52,6 @@ describe('The lists store', () => {
|
|||
})
|
||||
expect(store.allLists).to.have.length(1)
|
||||
expect(store.allLists[0]).to.eql(modList)
|
||||
|
||||
console.log('3 =========', worker.listHandlers())
|
||||
})
|
||||
|
||||
it('adds a new list with an array of IDs, updating the IDs for existing lists', async ({
|
||||
|
|
|
|||
|
|
@ -155,7 +155,6 @@ describe('oauth store', () => {
|
|||
describe('ensureAppToken', () => {
|
||||
it('should work if the state is empty', async ({ worker }) => {
|
||||
worker.use(...authApis())
|
||||
console.log('=========', worker.listHandlers())
|
||||
const store = useOAuthStore()
|
||||
const token = await store.ensureAppToken()
|
||||
expect(token).to.eql('test-app-token')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue