[ci] format
This commit is contained in:
parent
a206106098
commit
fbab73c96e
2 changed files with 1 additions and 4 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
import type { Plugin as VitePlugin } from 'vite';
|
import type { Plugin as VitePlugin } from 'vite';
|
||||||
|
|
||||||
const manifestVirtualModuleId = 'astro:ssr-manifest';
|
const manifestVirtualModuleId = 'astro:ssr-manifest';
|
||||||
|
@ -9,7 +8,7 @@ export function vitePluginSSRManifest(): VitePlugin {
|
||||||
name: '@astrojs/vite-plugin-astro-ssr-manifest',
|
name: '@astrojs/vite-plugin-astro-ssr-manifest',
|
||||||
enforce: 'post',
|
enforce: 'post',
|
||||||
resolveId(id, parent) {
|
resolveId(id, parent) {
|
||||||
if(id === manifestVirtualModuleId) {
|
if (id === manifestVirtualModuleId) {
|
||||||
return resolvedManifestVirtualModuleId;
|
return resolvedManifestVirtualModuleId;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
import { expect } from 'chai';
|
import { expect } from 'chai';
|
||||||
import { loadFixture } from './test-utils.js';
|
import { loadFixture } from './test-utils.js';
|
||||||
import testAdapter from './test-adapter.js';
|
import testAdapter from './test-adapter.js';
|
||||||
|
@ -25,6 +24,5 @@ describe('astro:ssr-manifest', () => {
|
||||||
|
|
||||||
const $ = cheerio.load(html);
|
const $ = cheerio.load(html);
|
||||||
expect($('#assets').text()).to.equal('["/_astro/index.1bad7273.css"]');
|
expect($('#assets').text()).to.equal('["/_astro/index.1bad7273.css"]');
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue