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:
@@ -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');
|
||||
});
|
Reference in New Issue
Block a user