[ci] format
This commit is contained in:
parent
a9bdd9cc4e
commit
9e7a198132
1 changed files with 4 additions and 4 deletions
|
@ -16,13 +16,13 @@ describe('<Code />', () => {
|
||||||
|
|
||||||
after(async () => {
|
after(async () => {
|
||||||
await container.close();
|
await container.close();
|
||||||
})
|
});
|
||||||
|
|
||||||
it('uses the bundles themes for built-in themes', async () => {
|
it('uses the bundles themes for built-in themes', async () => {
|
||||||
const { resolveHighlighterOptions } = mod;
|
const { resolveHighlighterOptions } = mod;
|
||||||
const opts = await resolveHighlighterOptions({ theme: 'css-variables' });
|
const opts = await resolveHighlighterOptions({ theme: 'css-variables' });
|
||||||
const themes = opts.themes;
|
const themes = opts.themes;
|
||||||
|
|
||||||
expect(themes).to.have.a.lengthOf(1);
|
expect(themes).to.have.a.lengthOf(1);
|
||||||
expect(themes[0]).to.be.an('object');
|
expect(themes[0]).to.be.an('object');
|
||||||
});
|
});
|
||||||
|
@ -31,10 +31,10 @@ describe('<Code />', () => {
|
||||||
const { resolveHighlighterOptions } = mod;
|
const { resolveHighlighterOptions } = mod;
|
||||||
const opts = await resolveHighlighterOptions({ theme: 'some-custom-theme' });
|
const opts = await resolveHighlighterOptions({ theme: 'some-custom-theme' });
|
||||||
const themes = opts.themes;
|
const themes = opts.themes;
|
||||||
|
|
||||||
expect(themes).to.have.a.lengthOf(1);
|
expect(themes).to.have.a.lengthOf(1);
|
||||||
expect(themes[0]).to.be.an('string');
|
expect(themes[0]).to.be.an('string');
|
||||||
expect(themes[0]).to.equal('some-custom-theme');
|
expect(themes[0]).to.equal('some-custom-theme');
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue