fix: fix old unit tests

This commit is contained in:
medtaher
2024-09-23 23:55:58 +01:00
parent 92003c471e
commit 982200cc3a
5 changed files with 15 additions and 0 deletions

View File

@@ -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,
},
];

View File

@@ -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>({