fix(backend): Foute entity-structuur van leerpaden verbeterd.
Ook testen geschreven voor LearningPathRepository en LearningObjectRepository.
This commit is contained in:
parent
4d999c78ba
commit
1417907933
24 changed files with 474 additions and 64 deletions
10
backend/tests/test-utils/load-test-asset.ts
Normal file
10
backend/tests/test-utils/load-test-asset.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import fs from "fs";
|
||||
import path from "node:path";
|
||||
|
||||
/**
|
||||
* Load the asset at the given path.
|
||||
* @param relPath Path of the asset relative to the test-assets folder.
|
||||
*/
|
||||
export function loadTestAsset(relPath: string): Buffer {
|
||||
return fs.readFileSync(path.resolve(__dirname, `../test-assets/${relPath}`));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue