mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: fix old unit tests
This commit is contained in:
2
api/src/utils/test/fixtures/contextvar.ts
vendored
2
api/src/utils/test/fixtures/contextvar.ts
vendored
@@ -18,10 +18,12 @@ const contextVars: ContextVarCreateDto[] = [
|
||||
{
|
||||
label: 'test context var 1',
|
||||
name: 'test1',
|
||||
permanent: false,
|
||||
},
|
||||
{
|
||||
label: 'test context var 2',
|
||||
name: 'test2',
|
||||
permanent: false,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
3
api/src/utils/test/fixtures/subscriber.ts
vendored
3
api/src/utils/test/fixtures/subscriber.ts
vendored
@@ -91,6 +91,9 @@ export const subscriberDefaultValues: TFixturesDefaultValues<Subscriber> = {
|
||||
lastvisit: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000),
|
||||
retainedFrom: new Date(Date.now() + 7 * 24 * 60 * 60 * 1000),
|
||||
avatar: null,
|
||||
/*context: {
|
||||
vars: {},
|
||||
}*/ // TODO: add unit tests taking into account the context field
|
||||
};
|
||||
|
||||
export const subscriberFixtures = getFixturesWithDefaultValues<Subscriber>({
|
||||
|
||||
Reference in New Issue
Block a user