generator-jhipster-encrypt-id
Version:
JHipster blueprint to encrypt the ids of all entities in the UI and API.
28 lines (23 loc) • 782 B
JavaScript
import { beforeAll, describe, expect, it } from 'vitest';
import { defaultHelpers as helpers, result } from 'generator-jhipster/testing';
const SUB_GENERATOR = 'client';
const BLUEPRINT_NAMESPACE = `jhipster:${SUB_GENERATOR}`;
describe('SubGenerator client of encrypt-id JHipster blueprint', () => {
describe('run', () => {
beforeAll(async function () {
await helpers
.run(BLUEPRINT_NAMESPACE)
.withJHipsterConfig()
.withOptions({
creationTimestamp: '2024-05-01',
ignoreNeedlesError: true,
blueprint: 'encrypt-id',
})
.withJHipsterLookup()
.withParentBlueprintLookup();
});
it('should succeed', () => {
expect(result.getStateSnapshot()).toMatchSnapshot();
});
});
});