1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00
verdaccio/packages/middleware/test/manifest.test.ts
Juan Picado 45c03819e2
refactor: html render middleware improvements (#3603)
* refactor: render middleware

* refactor: render middleware
2023-02-12 20:26:18 +01:00

12 lines
331 B
TypeScript

import { getManifestValue } from '../src/middlewares/web/utils/manifest';
const manifest = require('./partials/manifest/manifest.json');
describe('manifest', () => {
test('getManifestValue', () => {
expect(getManifestValue(['main.js'], manifest)).toEqual([
'/-/static/main.6126058572f989c948b1.js',
]);
});
});