Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
missed one case, added it...
Browse files Browse the repository at this point in the history
  • Loading branch information
Gero Herkenrath committed Apr 29, 2016
1 parent a3a69b3 commit 149f594
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Example/Tests/TRSCheckoutViewControllerSpec.m
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigati
expect(testCheckout.jsStrings).to.haveCountOf(10); // see set up of test order above (note: 2 products)
});
});
context(@"with an invalid order", ^{
it(@"returns NO", ^{
[testOrder setValue:nil forKey:@"curr"]; //abuse KVC for creating a faulty order...
expect([testCheckout constructJavaScriptStringsForOrder:testOrder]).to.beFalsy();
});
});
});

describe(@"-userContentController:didReceiveScriptMessage:", ^{
Expand Down

0 comments on commit 149f594

Please sign in to comment.