Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Feb 9, 2023
1 parent a9bdd9c commit 9e7a198
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/astro/test/units/shiki/shiki.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ describe('<Code />', () => {

after(async () => {
await container.close();
})
});

it('uses the bundles themes for built-in themes', async () => {
const { resolveHighlighterOptions } = mod;
const opts = await resolveHighlighterOptions({ theme: 'css-variables' });
const themes = opts.themes;

expect(themes).to.have.a.lengthOf(1);
expect(themes[0]).to.be.an('object');
});
Expand All @@ -31,10 +31,10 @@ describe('<Code />', () => {
const { resolveHighlighterOptions } = mod;
const opts = await resolveHighlighterOptions({ theme: 'some-custom-theme' });
const themes = opts.themes;

expect(themes).to.have.a.lengthOf(1);
expect(themes[0]).to.be.an('string');
expect(themes[0]).to.equal('some-custom-theme');
})
});
});
});

0 comments on commit 9e7a198

Please sign in to comment.