Skip to content

Commit 6420dd8

Browse files
committed
Adjust tests so they work
Fixed in statamic/cms#9621 but I want these tests to pass before that release is tagged.
1 parent 8099471 commit 6420dd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Tags/CartTagTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
test('user has a cart if cart exists', function () {
4343
fakeCart();
4444

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');
4646
});
4747

4848
test('can get line items', function () {
@@ -163,7 +163,7 @@
163163

164164
fakeCart($cart);
165165

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');
167167
});
168168

169169
test('can get cart free status if order is paid', function () {
@@ -172,7 +172,7 @@
172172

173173
fakeCart($cart);
174174

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');
176176
});
177177

178178
test('can get cart grand total', function () {

0 commit comments

Comments
 (0)