feat: small change

This commit is contained in:
mpaulson 2022-08-03 19:50:30 -06:00
parent b83a3f379b
commit b1ec6b10af
5 changed files with 6 additions and 25 deletions

View file

@ -2,7 +2,7 @@
"clearMocks": true, "clearMocks": true,
"moduleNameMapper": { "moduleNameMapper": {
"@code/(.*)": [ "@code/(.*)": [
"<rootDir>/src/day5/$1" "<rootDir>/src/day6/$1"
] ]
}, },
"preset": "ts-jest" "preset": "ts-jest"

View file

@ -1,25 +1,6 @@
module.exports = { module.exports = {
dsa: [ dsa: [
"LinearSearchList", "MinHeap",
"BinarySearchList",
"TwoCrystalBalls",
"BubbleSort",
"DoublyLinkedList",
"Queue",
"Stack",
"ArrayList",
"MazeSolver",
"QuickSort",
"BTPreOrder",
"BTInOrder",
"BTPostOrder",
"BTBFS",
"CompareBinaryTrees",
"DFSOnBST",
"DFSGraphList",
"Trie",
"BFSGraphMatrix",
"Map",
], ],
} }

View file

@ -14,10 +14,10 @@
"typescript": "^4.7.4" "typescript": "^4.7.4"
}, },
"scripts": { "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", "clear": "./scripts/clear",
"prettier": "prettier --write ./src", "prettier": "prettier --write ./src",
"generate": "./scripts/generate", "generate": "./scripts/generate",
"day": "echo /home/mpaulson/personal/kata/src/day5" "day": "echo /home/mpaulson/personal/kata/src/day6"
} }
} }

View file

@ -24,7 +24,7 @@ test("min heap", function () {
expect(heap.delete()).toEqual(8); expect(heap.delete()).toEqual(8);
expect(heap.delete()).toEqual(69); expect(heap.delete()).toEqual(69);
expect(heap.delete()).toEqual(420); expect(heap.delete()).toEqual(420);
expect(heap.length).toEqual(8); expect(heap.length).toEqual(0);
}); });

View file

@ -12,7 +12,7 @@
"baseUrl": "src", "baseUrl": "src",
"paths": { "paths": {
"@code/*": [ "@code/*": [
"day5/*" "day6/*"
] ]
} }
}, },