Commit 6420dd8 1 parent 8099471 commit 6420dd8 Copy full SHA for 6420dd8
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 42
42
test ('user has a cart if cart exists ' , function () {
43
43
fakeCart ();
44
44
45
- expect ((string ) tag ('{{ if {sc:cart:has} === true }}Has cart{{ else }}No cart{{ /if }} ' ))->toBe ('Has cart ' );
45
+ expect ((string ) tag ('{{ if {sc:cart:has} }}Has cart{{ else }}No cart{{ /if }} ' ))->toBe ('Has cart ' );
46
46
});
47
47
48
48
test ('can get line items ' , function () {
163
163
164
164
fakeCart ($ cart );
165
165
166
- expect ((string ) tag ('{{ if {sc:cart:free} === true }}Yes{{ else }}No{{ /if }} ' ))->toBe ('Yes ' );
166
+ expect ((string ) tag ('{{ if {sc:cart:free} }}Yes{{ else }}No{{ /if }} ' ))->toBe ('Yes ' );
167
167
});
168
168
169
169
test ('can get cart free status if order is paid ' , function () {
172
172
173
173
fakeCart ($ cart );
174
174
175
- expect ((string ) tag ('{{ if {sc:cart:free} === true }}Yes{{ else }}No{{ /if }} ' ))->toBe ('No ' );
175
+ expect ((string ) tag ('{{ if {sc:cart:free} }}Yes{{ else }}No{{ /if }} ' ))->toBe ('No ' );
176
176
});
177
177
178
178
test ('can get cart grand total ' , function () {
You can’t perform that action at this time.
0 commit comments