1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-07 05:36:54 +02:00

feat(tests): add missed tests for var shortcode

This commit is contained in:
Awilum
2022-05-25 18:03:07 +03:00
parent 35912b84a0
commit 3216e303d6

View File

@@ -11,6 +11,6 @@ afterEach(function () {
});
test('var shortcode', function () {
expect(entries()->create('foo', ['var' => ['foo' => 'Foo'], 'title' => '(var:foo)']))->toBeTrue();
expect(entries()->create('foo', ['vars' => ['foo' => 'Foo'], 'title' => '(var:foo)']))->toBeTrue();
expect(entries()->fetch('foo')['title'])->toBe('Foo');
});