UNPKG

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
import { beforeAll, describe, expect, it } from 'vitest'; import { defaultHelpers as helpers, result } from 'generator-jhipster/testing'; const SUB_GENERATOR = 'server'; const BLUEPRINT_NAMESPACE = `jhipster:${SUB_GENERATOR}`; describe('SubGenerator server of encrypt-id JHipster blueprint', () => { describe('run', () => { beforeAll(async function () { await helpers .run(BLUEPRINT_NAMESPACE) .withJHipsterConfig() .withOptions({ creationTimestamp: '2024-02-01', ignoreNeedlesError: true, blueprint: 'encrypt-id', }) .withJHipsterLookup() .withParentBlueprintLookup(); }); it('should succeed', () => { expect(result.getStateSnapshot()).toMatchSnapshot(); }); }); });