UNPKG

generator-jhipster-encrypt-id

Version:

JHipster blueprint to encrypt the ids of all entities in the UI and API.

26 lines (21 loc) 747 B
import { beforeAll, describe, expect, it } from 'vitest'; import { defaultHelpers as helpers, result } from 'generator-jhipster/testing'; const SUB_GENERATOR = 'encrypt-id-angular'; const SUB_GENERATOR_NAMESPACE = `jhipster-encrypt-id:${SUB_GENERATOR}`; describe('SubGenerator encrypt-id-angular of encrypt-id JHipster blueprint', () => { describe('run', () => { beforeAll(async function () { await helpers .run(SUB_GENERATOR_NAMESPACE) .withJHipsterConfig() .withOptions({ ignoreNeedlesError: true, }) .withJHipsterLookup() .withParentBlueprintLookup(); }); it('should succeed', () => { expect(result.getStateSnapshot()).toMatchSnapshot(); }); }); });