From b1ec6b10af7796882c242ab5a082312ea9e150a5 Mon Sep 17 00:00:00 2001 From: mpaulson Date: Wed, 3 Aug 2022 19:50:30 -0600 Subject: [PATCH] feat: small change --- .jest.config.json | 2 +- ligma.config.js | 21 +-------------------- package.json | 4 ++-- src/__tests__/MinHeap.ts | 2 +- tsconfig.json | 2 +- 5 files changed, 6 insertions(+), 25 deletions(-) diff --git a/.jest.config.json b/.jest.config.json index 14b7c3c..5503c6a 100644 --- a/.jest.config.json +++ b/.jest.config.json @@ -2,7 +2,7 @@ "clearMocks": true, "moduleNameMapper": { "@code/(.*)": [ - "/src/day5/$1" + "/src/day6/$1" ] }, "preset": "ts-jest" diff --git a/ligma.config.js b/ligma.config.js index ef8e9da..0bcb38e 100644 --- a/ligma.config.js +++ b/ligma.config.js @@ -1,25 +1,6 @@ module.exports = { dsa: [ - "LinearSearchList", - "BinarySearchList", - "TwoCrystalBalls", - "BubbleSort", - "DoublyLinkedList", - "Queue", - "Stack", - "ArrayList", - "MazeSolver", - "QuickSort", - "BTPreOrder", - "BTInOrder", - "BTPostOrder", - "BTBFS", - "CompareBinaryTrees", - "DFSOnBST", - "DFSGraphList", - "Trie", - "BFSGraphMatrix", - "Map", + "MinHeap", ], } diff --git a/package.json b/package.json index e9300de..044409a 100644 --- a/package.json +++ b/package.json @@ -14,10 +14,10 @@ "typescript": "^4.7.4" }, "scripts": { - "test": "jest LinearSearchList BinarySearchList TwoCrystalBalls BubbleSort DoublyLinkedList Queue Stack ArrayList MazeSolver QuickSort BTPreOrder BTInOrder BTPostOrder BTBFS CompareBinaryTrees DFSOnBST DFSGraphList Trie BFSGraphMatrix Map", + "test": "jest MinHeap", "clear": "./scripts/clear", "prettier": "prettier --write ./src", "generate": "./scripts/generate", - "day": "echo /home/mpaulson/personal/kata/src/day5" + "day": "echo /home/mpaulson/personal/kata/src/day6" } } \ No newline at end of file diff --git a/src/__tests__/MinHeap.ts b/src/__tests__/MinHeap.ts index b8e85d7..40c4481 100644 --- a/src/__tests__/MinHeap.ts +++ b/src/__tests__/MinHeap.ts @@ -24,7 +24,7 @@ test("min heap", function () { expect(heap.delete()).toEqual(8); expect(heap.delete()).toEqual(69); expect(heap.delete()).toEqual(420); - expect(heap.length).toEqual(8); + expect(heap.length).toEqual(0); }); diff --git a/tsconfig.json b/tsconfig.json index 9f1b724..cd707ca 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,7 @@ "baseUrl": "src", "paths": { "@code/*": [ - "day5/*" + "day6/*" ] } },