Fix bug in login functionality

This commit is contained in:
Simon Larsen 2023-11-22 11:08:06 +00:00
parent 86a25a456a
commit c7622bb7f3
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
2 changed files with 36 additions and 0 deletions

9
Model/Tests/File.test.ts Normal file
View File

@ -0,0 +1,9 @@
import BaseModel from 'Common/Models/BaseModel';
import File from '../Models/File';
describe('File', () => {
it('should be an instance of BaseModel', () => {
const file: File = new File();
expect(file).toBeInstanceOf(BaseModel);
});
});

27
Model/jest.config.json Normal file
View File

@ -0,0 +1,27 @@
{
"preset": "ts-jest",
"verbose": true,
"globals": {
"ts-jest": {
"tsconfig": "tsconfig.json",
"babelConfig": false
}
},
"moduleFileExtensions": ["ts", "js", "json"],
"transform": {
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "node",
"collectCoverage": false,
"coverageReporters": ["text", "lcov"],
"testRegex": "./Tests/(.*).test.ts",
"collectCoverageFrom": ["./**/*.(tsx||ts)"],
"coverageThreshold": {
"global": {
"lines": 0,
"functions": 0,
"branches": 0,
"statements": 0
}
}
}