diff --git a/packages/db/test/basics.test.js b/packages/db/test/basics.test.js index 5ba70457c3..de0a9a0250 100644 --- a/packages/db/test/basics.test.js +++ b/packages/db/test/basics.test.js @@ -70,6 +70,16 @@ describe('astro:db', () => { expect(new Date(themeAdded).getTime()).to.not.be.NaN; }); + it.skip('Defaults can be overridden for dates', async () => { + const request = new Request('http://example.com/'); + const res = await app.render(request); + const html = await res.text(); + const $ = cheerioLoad(html); + + const themeAdded = $($('.themes-list .theme-added')[1]).text(); + expect(new Date(themeAdded).getTime()).to.not.be.NaN; + }); + it('Allows expression defaults for text fields', async () => { const request = new Request('http://example.com/'); const res = await app.render(request); diff --git a/packages/db/test/fixtures/basics/astro.config.ts b/packages/db/test/fixtures/basics/astro.config.ts index 63b5e75c4c..5b64a9921d 100644 --- a/packages/db/test/fixtures/basics/astro.config.ts +++ b/packages/db/test/fixtures/basics/astro.config.ts @@ -39,7 +39,7 @@ export default defineConfig({ // but in this case we do it for both, due to tests await seed(Themes, [ { name: 'dracula' }, - { name: 'monokai' }, + { name: 'monokai', added: new Date() }, ]); }, },