mirror of
https://github.com/withastro/astro.git
synced 2025-02-24 22:46:02 -05:00
wip: throw some console logs at github
This commit is contained in:
parent
a738346e1c
commit
7c21b964e0
1 changed files with 4 additions and 0 deletions
|
@ -27,6 +27,7 @@ describe('astro:db', () => {
|
||||||
it('Prints the list of authors', async () => {
|
it('Prints the list of authors', async () => {
|
||||||
const html = await fixture.fetch('/').then((res) => res.text());
|
const html = await fixture.fetch('/').then((res) => res.text());
|
||||||
const $ = cheerioLoad(html);
|
const $ = cheerioLoad(html);
|
||||||
|
console.log('prints the list of authors::', html);
|
||||||
|
|
||||||
const ul = $('.authors-list');
|
const ul = $('.authors-list');
|
||||||
expect(ul.children()).to.have.a.lengthOf(5);
|
expect(ul.children()).to.have.a.lengthOf(5);
|
||||||
|
@ -37,6 +38,7 @@ describe('astro:db', () => {
|
||||||
it('Allows expression defaults for date columns', async () => {
|
it('Allows expression defaults for date columns', async () => {
|
||||||
const html = await fixture.fetch('/').then((res) => res.text());
|
const html = await fixture.fetch('/').then((res) => res.text());
|
||||||
const $ = cheerioLoad(html);
|
const $ = cheerioLoad(html);
|
||||||
|
console.log('Allows expression defaults for date columns::', html);
|
||||||
|
|
||||||
const themeAdded = $($('.themes-list .theme-added')[0]).text();
|
const themeAdded = $($('.themes-list .theme-added')[0]).text();
|
||||||
expect(new Date(themeAdded).getTime()).to.not.be.NaN;
|
expect(new Date(themeAdded).getTime()).to.not.be.NaN;
|
||||||
|
@ -45,6 +47,7 @@ describe('astro:db', () => {
|
||||||
it('Defaults can be overridden for dates', async () => {
|
it('Defaults can be overridden for dates', async () => {
|
||||||
const html = await fixture.fetch('/').then((res) => res.text());
|
const html = await fixture.fetch('/').then((res) => res.text());
|
||||||
const $ = cheerioLoad(html);
|
const $ = cheerioLoad(html);
|
||||||
|
console.log('defaults can be overridden for dates', html);
|
||||||
|
|
||||||
const themeAdded = $($('.themes-list .theme-added')[1]).text();
|
const themeAdded = $($('.themes-list .theme-added')[1]).text();
|
||||||
expect(new Date(themeAdded).getTime()).to.not.be.NaN;
|
expect(new Date(themeAdded).getTime()).to.not.be.NaN;
|
||||||
|
@ -61,6 +64,7 @@ describe('astro:db', () => {
|
||||||
it('Allows expression defaults for boolean columns', async () => {
|
it('Allows expression defaults for boolean columns', async () => {
|
||||||
const html = await fixture.fetch('/').then((res) => res.text());
|
const html = await fixture.fetch('/').then((res) => res.text());
|
||||||
const $ = cheerioLoad(html);
|
const $ = cheerioLoad(html);
|
||||||
|
console.log('Allows expression defaults for boolean columns::', html);
|
||||||
|
|
||||||
const themeDark = $($('.themes-list .theme-dark')[0]).text();
|
const themeDark = $($('.themes-list .theme-dark')[0]).text();
|
||||||
expect(themeDark).to.equal('dark mode');
|
expect(themeDark).to.equal('dark mode');
|
||||||
|
|
Loading…
Add table
Reference in a new issue