Skip to content

Commit

Permalink
Chore(TDD): add the missing TDDs, #10
Browse files Browse the repository at this point in the history
  • Loading branch information
proXDhiya committed Aug 24, 2024
1 parent ac85c71 commit 3e105f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/commends/RENAMENX.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import RENAMENX from "../../app/commands/dataManipulation/RENAMENX";
import ICommand from "../../app/interfaces/command.interface";
import {setupSharedStorage} from "../__mock__/keys.mock";
import {describe, it, expect, beforeEach} from "bun:test";
import {describe, it, expect, beforeAll} from "bun:test";

describe('RENAMENX', () => {
beforeEach(() => {
beforeAll(() => {
setupSharedStorage();
});

Expand All @@ -24,7 +24,7 @@ describe('RENAMENX', () => {
it('should return a command object with type "integer" and data 0 when the new key already exists', () => {
const result: ICommand = RENAMENX([
{type: 'string', data: 'RENAMENX'},
{type: 'string', data: 'key'},
{type: 'string', data: 'new-key'},
{type: 'string', data: 'REQ_name'}
]);

Expand Down

0 comments on commit 3e105f9

Please sign in to comment.