mirror of
https://github.com/mathuo/dockview
synced 2025-03-12 08:52:05 +00:00
code£
This commit is contained in:
parent
9ac06b5238
commit
b7fcb0ae42
@ -1,6 +1,6 @@
|
|||||||
const {join, normalize} = require("path");
|
const {join, normalize} = require("path");
|
||||||
|
|
||||||
const tsConfig = normalize(join(__dirname, "tsconfig.build.json"))
|
const tsConfig = normalize(join(__dirname, "tsconfig.test.json"))
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
displayName: { name: "root" },
|
displayName: { name: "root" },
|
||||||
|
@ -57,13 +57,13 @@ describe('api', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should update isActive getter', () => {
|
it('should update isActive getter', () => {
|
||||||
expect(api.isVisible).toBeFalsy();
|
|
||||||
|
|
||||||
api._onDidVisibilityChange.fire({ isVisible: true });
|
|
||||||
expect(api.isVisible).toBeTruthy();
|
expect(api.isVisible).toBeTruthy();
|
||||||
|
|
||||||
api._onDidVisibilityChange.fire({ isVisible: false });
|
api._onDidVisibilityChange.fire({ isVisible: false });
|
||||||
expect(api.isVisible).toBeFalsy();
|
expect(api.isVisible).toBeFalsy();
|
||||||
|
|
||||||
|
api._onDidVisibilityChange.fire({ isVisible: true });
|
||||||
|
expect(api.isVisible).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should update width and height getter', () => {
|
it('should update width and height getter', () => {
|
||||||
|
22
tsconfig.test.json
Normal file
22
tsconfig.test.json
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "commonjs",
|
||||||
|
"target": "es2019",
|
||||||
|
"sourceMap": true,
|
||||||
|
"declaration": true,
|
||||||
|
"jsx": "react",
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noImplicitAny": true,
|
||||||
|
"allowUnreachableCode": false,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
// "strict": true,
|
||||||
|
"strictBindCallApply": true, // pass
|
||||||
|
"alwaysStrict": true, // pass
|
||||||
|
"noImplicitThis": true, // pass
|
||||||
|
"strictFunctionTypes": true, // pass
|
||||||
|
"strictNullChecks": false,
|
||||||
|
"strictPropertyInitialization": false,
|
||||||
|
},
|
||||||
|
"exclude": ["node_modules", "dist"]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user