diff options
Diffstat (limited to 'cli/tests/unit/performance_test.ts')
-rw-r--r-- | cli/tests/unit/performance_test.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cli/tests/unit/performance_test.ts b/cli/tests/unit/performance_test.ts index 3c98e4e40..7b2fa5cef 100644 --- a/cli/tests/unit/performance_test.ts +++ b/cli/tests/unit/performance_test.ts @@ -3,6 +3,7 @@ import { unitTest, assert, assertEquals, + assertThrows, createResolvable, } from "./test_util.ts"; @@ -64,3 +65,19 @@ unitTest(function performanceMeasure() { }, 100); }); }); + +unitTest(function performanceIllegalConstructor() { + assertThrows(() => new Performance(), TypeError, "Illegal constructor."); +}); + +unitTest(function performanceEntryIllegalConstructor() { + assertThrows(() => new PerformanceEntry(), TypeError, "Illegal constructor."); +}); + +unitTest(function performanceMeasureIllegalConstructor() { + assertThrows( + () => new PerformanceMeasure(), + TypeError, + "Illegal constructor.", + ); +}); |