Skip to content

Commit

Permalink
#35 Weird Test Activity
Browse files Browse the repository at this point in the history
  • Loading branch information
Peyton-McKee committed Sep 23, 2023
1 parent a6b1405 commit 7b6f16e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scylla-server/tests/driver-services.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, test, expect } from 'vitest';
import { describe, test, expect, afterEach } from 'vitest';
import { getAllDrivers, upsertDriver } from '../src/services/driver.services';
import prisma from '../src/odyssey-base/src/prisma/prisma-client';

Expand All @@ -19,7 +19,7 @@ describe('CRUD Driver', () => {
/**
* unit test for get all drivers
*/
test('Get All Data Types Works', async () => {
test('Get All Drivers Works', async () => {
const expected = [];
const result = await getAllDrivers();

Expand Down
3 changes: 2 additions & 1 deletion scylla-server/tests/systems-services.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { describe, test, expect } from 'vitest';
import { describe, test, expect, afterEach } from 'vitest';
import { getAllSystems, upsertSystem } from '../src/services/systems.services';
import prisma from '../src/odyssey-base/src/prisma/prisma-client';

Expand Down Expand Up @@ -51,6 +51,7 @@ describe('CRUD Systems', () => {
test('Upsert System Does Nothing', async () => {
const expected = [{ name: 'test' }];
await upsertSystem('test');
await upsertSystem('test');
const result = JSON.parse(await getAllSystems());

// Use toEqual to compare result with the expected array
Expand Down

0 comments on commit 7b6f16e

Please sign in to comment.