-
-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- v8.4.0
- v8.3.6
- v8.3.5
- v8.3.4
- v8.3.3
- v8.3.2
- v8.3.1
- v8.3.0
- v8.2.0
- v8.1.0
- v8.0.7
- v8.0.6
- v8.0.5
- v8.0.4
- v8.0.3
- v8.0.2
- v8.0.1
- v8.0.0
- v8.0.0-rc.6
- v8.0.0-rc.5
- v8.0.0-rc.4
- v8.0.0-rc.3
- v8.0.0-rc.2
- v8.0.0-rc.1
- v8.0.0-beta.11
- v8.0.0-beta.10
- v8.0.0-beta.9
- v8.0.0-beta.8
- v8.0.0-beta.7
- v8.0.0-beta.6
- v8.0.0-beta.5
- v8.0.0-beta.4
- v8.0.0-beta.3
- v8.0.0-beta.2
- v8.0.0-beta.1
- v8.0.0-alpha.12
- v8.0.0-alpha.11
- v8.0.0-alpha.10
- v8.0.0-alpha.9
- v8.0.0-alpha.8
- v8.0.0-alpha.7
- v8.0.0-alpha.6
- v8.0.0-alpha.5
- v8.0.0-alpha.4
- v8.0.0-alpha.3
- v8.0.0-alpha.2
- v8.0.0-alpha.1
- v7.85.1
- v7.85.0
- v7.84.1
- v7.84.0
- v7.83.4
- v7.83.3
- v7.83.2
- v7.83.1
- v7.83.0
- v7.82.3
- v7.82.2
- v7.82.1
- v7.82.0
- v7.81.2
- v7.81.1
- v7.81.0
- v7.81.0-rc.2
- v7.81.0-rc.1
- v7.80.3
- v7.80.2
- v7.80.1
- v7.80.0
- v7.79.4
- v7.79.3
- v7.79.2
- v7.79.1
- v7.79.0
- v7.78.1
- v7.78.0
- v7.77.1
- v7.77.0
- v7.76.2
- v7.76.1
- v7.76.0
- v7.75.5
- v7.75.4
- v7.75.3
- v7.75.2
- v7.75.1
- v7.75.0
- v7.74.2
- v7.74.1
- v7.74.0
- v7.73.6
- v7.73.5
- v7.73.4
- v7.73.3
- v7.73.2
- v7.73.1
- v7.73.0
- v7.72.0
- v7.71.2
- v7.71.1
- v7.71.0
- v7.70.2
- v7.70.1
- v7.70.0
- v7.69.4
- v7.69.3
- v7.69.2
- v7.69.1
- v7.69.0
- v7.68.6
- v7.68.5
- v7.68.4
- v7.68.3
- v7.68.2
- v7.68.1
- v7.68.0
- v7.67.8
- v7.67.7
- v7.67.6
- v7.67.5
- v7.67.4
- v7.67.3
- v7.67.2
- v7.67.1
- v7.67.0
- v7.66.0
- v7.65.0
- v7.64.0
- v7.63.3
- v7.63.2
- v7.63.1
- v7.63.0
- v7.62.3
- v7.62.2
- v7.62.1
- v7.62.0
- v7.61.2
- v7.61.1
- v7.61.0
- v7.60.1
- v7.60.0
- v7.59.1
- v7.59.0
- v7.58.0
- v7.57.1
- v7.57.0
- v7.56.0
- v7.55.0
- v7.54.0
- v7.53.0
- v7.52.0
- v7.51.2
- v7.51.1
- v7.51.0
- v7.50.0
- v7.49.0
- v7.48.0
- v7.47.1
- v7.47.0
- v7.46.0
- v7.45.0
- v7.44.1
- v7.44.0
- v7.43.2
- v7.43.1
- v7.43.0
- v7.42.0
- v7.41.2
- v7.41.1
- v7.41.0
- v7.40.0
- v7.39.1
- v7.39.0
- v7.38.1
- v7.38.0
- v7.37.0
- v7.36.8
- v7.36.7
- v7.36.6
- v7.36.5
- v7.36.4
- v7.36.3
- v7.36.2
- v7.36.1
- v7.36.0
- v7.36.0-rc.5
- v7.36.0-rc.4
- v7.36.0-rc.3
- v7.36.0-rc.2
- v7.36.0-rc.1
- v7.35.1
- v7.35.0
- v7.35.0-rc.1
- v7.35.0-beta.5
- v7.35.0-beta.4
- v7.35.0-beta.3
- v7.35.0-beta.2
- v7.35.0-beta.1
- v7.34.9
- v7.34.8
- v7.34.7
- v7.34.6
- v7.34.5
- v7.34.4
- v7.34.3
- v7.34.2
- v7.34.1
- v7.34.0
- v7.33.4
- v7.33.3
- v7.33.2
- v7.33.1
- v7.33.0
- v7.32.0
- v7.31.0
- v7.31.0-rc.2
- v7.31.0-rc.1
- v7.30.3
- v7.30.2
- v7.30.1
- v7.30.0
- v7.29.1
- v7.29.0
- v7.28.0
- v7.27.2
- v7.27.1
- v7.27.0
- v7.26.3
- v7.26.2
- v7.26.1
- v7.26.0
- v7.25.0
- v7.24.1
- v7.24.0
- v7.23.1
- v7.23.0
- v7.22.2
- v7.22.1
- v7.22.0
- v7.21.1
- v7.21.0
- v7.20.0
- v7.19.0
- v7.18.4
- v7.18.3
- v7.18.3-rc.1
- v7.18.2
- v7.18.1
- v7.18.0
- v7.17.0
- v7.16.2
- v7.16.1
- v7.16.0
- v7.15.1
- v7.15.0
- v7.14.2
- v7.14.1
- v7.14.0
- v7.13.7
- v7.13.6
- v7.13.5
- v7.13.4
- v7.13.3
- v7.13.2
- v7.13.1
- v7.13.0
- v7.12.0
- v7.11.0
- v7.10.1
- v7.10.0
- v7.10.0-rc.8
- v7.10.0-rc.7
- v7.10.0-rc.6
- v7.10.0-rc.5
- v7.10.0-rc.4
- v7.10.0-rc.3
- v7.10.0-rc.2
- v7.10.0-rc.1
- v7.9.0
- v7.8.3
- v7.8.2
- v7.8.1
- v7.8.0
- v7.7.1
- v7.7.0
- v7.6.0
- v7.5.3
- v7.5.2
- v7.5.1
- v7.5.0
- v7.4.3
- v7.4.2
- v7.4.1
- v7.4.0
- v7.3.1
- v7.3.0
- v7.2.4
- v7.2.3
- v7.2.2
- v7.2.1
- v7.2.0
- v7.1.1
- v7.1.0
- v7.0.2
- v7.0.1
- v7.0.0
- v7.0.0-rc.7
- v7.0.0-rc.6
- v7.0.0-rc.5
- v7.0.0-rc.4
- v7.0.0-rc.3
- v7.0.0-rc.2
- v7.0.0-rc.1
- v7.0.0-beta.20
- v7.0.0-beta.19
- v7.0.0-beta.18
- v7.0.0-beta.17
- v7.0.0-beta.16
- v7.0.0-beta.15
- v7.0.0-beta.14
- v7.0.0-beta.13
- v7.0.0-beta.12
- v7.0.0-beta.11
- v7.0.0-beta.10
- v7.0.0-beta.9
- v7.0.0-beta.8
- v7.0.0-beta.7
- v7.0.0-beta.6
- v7.0.0-beta.5
- v7.0.0-beta.4
- v6.133.2
- v6.133.1
- v6.133.0
- v6.132.1
- v6.132.0
- v6.131.1
- v6.131.0
- v6.130.0
- v6.129.0
- v6.128.10
- v6.128.9
- v6.128.8
- v6.128.7
- v6.128.6
- v6.128.5
- v6.128.4
- v6.128.3
- v6.128.2
- v6.128.1
- v6.128.0
- v6.127.0
- v6.126.1
- v6.126.0
- v6.125.3
- v6.125.2
- v6.125.1
- v6.125.0
- v6.124.0
- v6.123.1
- v6.123.0
- v6.122.3
- v6.122.2
- v6.122.1
- v6.122.0
- v6.121.1
- v6.121.0
- v6.120.0
- v6.119.1
- v6.119.0
- v6.118.0
- v6.118.0-rc.1
- v6.117.2
- v6.117.1
- v6.117.0
- v6.116.6
- v6.116.5
- v6.116.4
- v6.116.3
- v6.116.2
- v6.116.1
- v6.116.0
- v6.115.1
- v6.115.0
- v6.114.18
- v6.114.17
- v6.114.16
- v6.114.15
- v6.114.14
- v6.114.13
- v6.114.13-rc.1
- v6.114.12
- v6.114.11
- v6.114.10
- v6.114.9
- v6.114.8
- v6.114.7
- v6.114.6
- v6.114.5
- v6.114.5-rc.1
- v6.114.4
- v6.114.3
- v6.114.2
- v6.114.1
- v6.114.0
- v6.114.0-rc.1
- v6.113.3
- v6.113.2
- v6.113.1
- v6.113.0
- v6.112.0
- v6.111.0
- v6.110.2
- v6.110.1
- v6.110.0
- v6.109.0
- v6.108.0
- v6.107.5
- v6.107.4
- v6.107.3
- v6.107.2
- v6.107.1
- v6.107.0
- v6.106.0
- v6.105.4
- v6.105.3
- v6.105.2
- v6.105.1
- v6.105.0
- v6.104.0
- v6.103.3
- v6.103.2
- v6.103.1
- v6.103.0
- v6.102.8
- v6.102.8-rc.3
- v6.102.8-rc.2
- v6.102.8-rc.1
Showing
59 changed files
with
586 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// For a detailed explanation regarding each configuration property, visit: | ||
// https://jestjs.io/docs/en/configuration.html | ||
|
||
module.exports = { | ||
...require("@tsed/jest-config")(__dirname, "core"), | ||
coverageThreshold: { | ||
global: { | ||
statements: 97.95, | ||
branches: 89.65, | ||
functions: 96.04, | ||
lines: 98.17 | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
import {expect} from "chai"; | ||
import {Deprecated} from "../../src"; | ||
import {Deprecated} from "./deprecated"; | ||
import {deprecate} from "util"; | ||
|
||
class Test { | ||
test() {} | ||
} | ||
jest.mock("util"); | ||
|
||
describe("Deprecated", () => { | ||
it("should wrap method as deprecated", () => { | ||
expect(Deprecated("test")(Test, "test", {value: Test.prototype.test}).value).to.be.a("function"); | ||
class Test { | ||
@Deprecated("test") | ||
test() {} | ||
} | ||
|
||
new Test(); | ||
|
||
expect(deprecate).toHaveBeenCalledWith(expect.any(Function), "test"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
/** | ||
* @module common/core | ||
*/ | ||
import {Configurable} from "./configurable"; | ||
/** */ | ||
|
||
export function NotConfigurable(): Function { | ||
return Configurable(false); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
/** | ||
* @module common/core | ||
*/ | ||
import {Enumerable} from "./enumerable"; | ||
/** */ | ||
|
||
export function NotEnumerable(): Function { | ||
return Enumerable(false); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
/** | ||
* @module common/core | ||
*/ | ||
import {Writable} from "./writable"; | ||
/** */ | ||
|
||
export function Readonly(): Function { | ||
return Writable(false); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import {expect} from "chai"; | ||
import {descriptorOf, Readonly, Writable} from "../../src"; | ||
|
||
class Test {} | ||
|
||
describe("Writable", () => { | ||
it("should set attribut as writable", () => { | ||
Writable()(Test, "test"); | ||
expect(descriptorOf(Test, "test").writable).to.eq(true); | ||
expect(descriptorOf(Test, "test").writable).toBe(true); | ||
}); | ||
it("should set attribut as readonly", () => { | ||
Readonly()(Test, "test"); | ||
expect(descriptorOf(Test, "test").writable).to.eq(false); | ||
expect(descriptorOf(Test, "test").writable).toBe(false); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.