0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/packages/middleware/test/manifest.test.ts

12 lines
331 B
TypeScript
Raw Normal View History

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',
]);
});
});