Skip to content

Commit

Permalink
feat add test from Relay
Browse files Browse the repository at this point in the history
retry: expect.any(Function) // added in all loading return

* changed it("updates if `render` prop changes", retry now is always
   present
* changed it("fetches the query once, always renders snapshot returned by
  fetch", fetch policy in store-or-network, before store-and-network, now
  not exist anymore cached request in component

* it("does not update if all props are ===", hooks renderer with same result

* it("refetch the query if `retry`", now retry only try on network and
   forceupdate after call ending

* it("retains the new selection", called two retain, first one Test, second one Next

* removed all test wherequery is null & all test for context
  • Loading branch information
morrys committed Nov 13, 2019
1 parent 4572db7 commit 371ab1f
Show file tree
Hide file tree
Showing 18 changed files with 9,153 additions and 219 deletions.
Binary file modified .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
lib
*.tgz
coverage
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ tsconfig.json
examples/
website/
docs/
scripts
coverage
__tests__
__mocks__
Loading

0 comments on commit 371ab1f

Please sign in to comment.