mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
feat(api): update contextVar unit tests
This commit is contained in:
parent
e0fdd71693
commit
4f9a76ce09
@ -103,6 +103,7 @@ describe('ContextVarController', () => {
|
||||
label: 'contextVarLabel2',
|
||||
name: 'test_add',
|
||||
permanent: false,
|
||||
pattern: '/.+/',
|
||||
};
|
||||
const result = await contextVarController.create(contextVarCreateDto);
|
||||
|
||||
|
1
api/src/utils/test/fixtures/contextvar.ts
vendored
1
api/src/utils/test/fixtures/contextvar.ts
vendored
@ -18,6 +18,7 @@ type TContentVarFixtures = FixturesTypeBuilder<ContextVar, ContextVarCreateDto>;
|
||||
|
||||
export const contentVarDefaultValues: TContentVarFixtures['defaultValues'] = {
|
||||
permanent: false,
|
||||
pattern: '/.+/',
|
||||
};
|
||||
|
||||
const contextVars: TContentVarFixtures['values'][] = [
|
||||
|
Loading…
Reference in New Issue
Block a user