Skip to content

Commit

Permalink
change test case wording and remove unneeded database truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
valya committed Jun 18, 2024
1 parent f099322 commit 30a0edb
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ afterAll(async () => {
await testDb.terminate();
});

afterEach(async () => {
await testDb.truncate(['User']);
});

describe('WorkflowStaticDataService', () => {
it('should not changed workflow updatedAt when calling saveStaticData', async () => {
it('should not change workflow updatedAt when calling saveStaticData', async () => {
const workflowEntityOriginal = await createWorkflow();

const workflow = new Workflow({
Expand All @@ -50,7 +46,7 @@ describe('WorkflowStaticDataService', () => {
expect(workflowEntityNew?.updatedAt).toEqual(workflowEntityOriginal.updatedAt);
});

it('should not changed workflow updatedAt when calling saveStaticData', async () => {
it('should not change workflow updatedAt when calling saveStaticDataById', async () => {
const workflowEntityOriginal = await createWorkflow();
const staticData = { testValue: 1 };

Expand Down

0 comments on commit 30a0edb

Please sign in to comment.