generator-jhipster-encrypt-id
Version:
JHipster blueprint to encrypt the ids of all entities in the UI and API.
38 lines (33 loc) • 1.03 kB
JavaScript
import { beforeAll, describe, expect, it } from 'vitest';
import { defaultHelpers as helpers, result } from 'generator-jhipster/testing';
const SUB_GENERATOR = 'encrypt-id-java';
const SUB_GENERATOR_NAMESPACE = `jhipster-encrypt-id:${SUB_GENERATOR}`;
describe('SubGenerator encrypt-id-java of encrypt-id JHipster blueprint', () => {
describe('run', () => {
beforeAll(async function () {
await helpers
.run(SUB_GENERATOR_NAMESPACE)
.withJHipsterConfig({}, [
{
name: 'Entities',
enableAudit: true,
fields: [
{
fieldName: 'name',
fieldType: 'String',
},
],
},
])
.withOptions({
creationTimestamp: '2024-02-01',
ignoreNeedlesError: true,
})
.withJHipsterLookup()
.withParentBlueprintLookup();
});
it('should succeed', () => {
expect(result.getStateSnapshot()).toMatchSnapshot();
});
});
});