Created
          April 5, 2017 18:43 
        
      - 
      
 - 
        
Save carlosble/a65ac937958b113414f984a478500ba6 to your computer and use it in GitHub Desktop.  
    Finer test, checking the store
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | it("populates the store with server data", (done) => { | |
| const invoice = { | |
| reference: '0001', | |
| amount: '10.00', | |
| }; | |
| store.subscribe(() => { | |
| expect(store.getState().billing.invoices[0]).toEqual(invoice); | |
| done(); | |
| }); | |
| stubApi.getInvoices = () =>{ | |
| return Promise.resolve([invoice]); | |
| }; | |
| createPage(); | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment