diff options
Diffstat (limited to 'packages/astro/test/content-layer.test.js')
-rw-r--r-- | packages/astro/test/content-layer.test.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/astro/test/content-layer.test.js b/packages/astro/test/content-layer.test.js index a46da9a78..5d89e82d8 100644 --- a/packages/astro/test/content-layer.test.js +++ b/packages/astro/test/content-layer.test.js @@ -260,6 +260,10 @@ describe('Content Layer', () => { }); }); + it('allows "slug" as a field', async () => { + assert.equal(json.increment.data.slug, 'slimy'); + }); + it('updates the store on new builds', async () => { assert.equal(json.increment.data.lastValue, 1); assert.equal(json.entryWithReference.data.something?.content, 'transform me'); |