Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change test-QueuePlugin.mjs to test-Plugin.mjs and Tests Fail #1086

Closed
gauntface opened this issue Nov 30, 2017 · 0 comments
Closed

Change test-QueuePlugin.mjs to test-Plugin.mjs and Tests Fail #1086

gauntface opened this issue Nov 30, 2017 · 0 comments
Assignees

Comments

@gauntface
Copy link

I changes test-QueuePlugin.mjs to test-Plugin.mjs as part of #1084 but it causes tests to fail. For now I've just kept the file name as is.

Log of failing tests:

16 passing (1s)
  11 failing

  1) [workbox-background-sync] Queue
       addRequest
         should serialize the request and store it in IndexedDB:
     NotFoundError: IDBTransaction.objectStore(): Object store 'requests' does not exist
      at IDBTransaction.objectStore (/home/matt/Projects/Code/workbox/node_modules/shelving-mock-indexeddb/lib/mock.js:295:33)
      at Promise (/home/matt/Projects/Code/workbox/packages/workbox-core/_private/DBWrapper.mjs:117:1047)
      at new Promise (<anonymous>)
      at DBWrapper.transaction (/home/matt/Projects/Code/workbox/packages/workbox-core/_private/DBWrapper.mjs:117:154)
      at <anonymous>

  2) [workbox-background-sync] Queue
       addRequest
         should register to receive sync events for a unique tag:

      AssertionError: expected false to be true
      + expected - actual

      -false
      +true

      at Context.<anonymous> (test/workbox-background-sync/node/lib/test-Queue.mjs:145:63)
      at <anonymous>

  3) [workbox-background-sync] Queue
       addRequest
         should invoke the requestWillEnqueue callback:
     NotFoundError: IDBTransaction.objectStore(): Object store 'requests' does not exist
      at IDBTransaction.objectStore (/home/matt/Projects/Code/workbox/node_modules/shelving-mock-indexeddb/lib/mock.js:295:33)
      at Promise (/home/matt/Projects/Code/workbox/packages/workbox-core/_private/DBWrapper.mjs:117:1047)
      at new Promise (<anonymous>)
      at DBWrapper.transaction (/home/matt/Projects/Code/workbox/packages/workbox-core/_private/DBWrapper.mjs:117:154)
      at <anonymous>

  4) [workbox-background-sync] Queue
       addRequest
         should support modifying the stored request via requestWillEnqueue:

      AssertionError: expected false to be true
      + expected - actual

      -false
      +true

      at Context.<anonymous> (test/workbox-background-sync/node/lib/test-Queue.mjs:177:50)
      at <anonymous>

  5) [workbox-background-sync] Queue
       replayRequests
         should try to re-fetch all requests in the queue:

      AssertionError: expected 0 to equal 3
      + expected - actual

      -0
      +3

      at Context.<anonymous> (test/workbox-background-sync/node/lib/test-Queue.mjs:203:39)
      at <anonymous>

  6) [workbox-background-sync] Queue
       replayRequests
         should remove requests after a successful retry:

      AssertionError: expected 0 to equal 3
      + expected - actual

      -0
      +3

      at Context.<anonymous> (test/workbox-background-sync/node/lib/test-Queue.mjs:244:39)
      at <anonymous>

  7) [workbox-background-sync] Queue
       replayRequests
         should ignore (and remove) requests if maxRetentionTime has passed:

      AssertionError: expected false to be true
      + expected - actual

      -false
      +true

      at Context.<anonymous> (test/workbox-background-sync/node/lib/test-Queue.mjs:272:42)
      at <anonymous>

  8) [workbox-background-sync] Queue
       replayRequests
         should keep a request in the queue if re-fetching fails:

      AssertionError: expected 0 to equal 2
      + expected - actual

      -0
      +2

      at Context.<anonymous> (test/workbox-background-sync/node/lib/test-Queue.mjs:300:33)
      at <anonymous>

  9) [workbox-background-sync] Queue
       replayRequests
         should re-register for a sync event if re-fetching fails:

      AssertionError: expected false to be true
      + expected - actual

      -false
      +true

      at Context.<anonymous> (test/workbox-background-sync/node/lib/test-Queue.mjs:324:63)
      at <anonymous>

  10) [workbox-background-sync] Queue
       replayRequests
         should invoke all replay callbacks:

      AssertionError: expected false to be true
      + expected - actual

      -false
      +true

      at Context.<anonymous> (test/workbox-background-sync/node/lib/test-Queue.mjs:344:50)
      at <anonymous>

  11) [workbox-background-sync] Queue
       replayRequests
         should support modifying the request via the requestWillReplay:

      AssertionError: expected false to be true
      + expected - actual

      -false
      +true

      at Context.<anonymous> (test/workbox-background-sync/node/lib/test-Queue.mjs:414:43)
      at <anonymous>

I'm not sure what the issue is or why they would affect each other, but would be good to rename the file to match the source file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants