Adding quick search and column dropdown to customers index

This commit is contained in:
Rob Harrington
2015-05-07 18:00:12 +10:00
parent 79d50a64ae
commit 8f35ccf007
5 changed files with 54 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ describe "Customers service", ->
# This is super weird and freaking annoying. I think resource results have extra
# properties ($then, $promise) that cause them to not be equal to the reponse object
# provided to the expectGET clause above.
expect(Customers.customers).toEqual { 5: new CustomerResource({ id: 5, email: 'someone@email.com'}) }
expect(Customers.customers).toEqual [ new CustomerResource({ id: 5, email: 'someone@email.com'}) ]
it "returns @customers", ->
expect(result).toEqual Customers.customers