@@ -2,7 +2,7 @@ import * as util from "../util";
22import { TSTLErrors } from "../../src/TSTLErrors" ;
33
44test ( "Class decorator with no parameters" , ( ) => {
5- util . fn `
5+ util . testFunction `
66 function SetBool<T extends { new(...args: any[]): {} }>(constructor: T) {
77 return class extends constructor {
88 decoratorBool = true;
@@ -20,7 +20,7 @@ test("Class decorator with no parameters", () => {
2020} ) ;
2121
2222test ( "Class decorator with parameters" , ( ) => {
23- util . fn `
23+ util . testFunction `
2424 function SetNum(numArg: number) {
2525 return <T extends new(...args: any[]) => {}>(constructor: T) => {
2626 return class extends constructor {
@@ -40,7 +40,7 @@ test("Class decorator with parameters", () => {
4040} ) ;
4141
4242test ( "Class decorator with variable parameters" , ( ) => {
43- util . fn `
43+ util . testFunction `
4444 function SetNumbers(...numArgs: number[]) {
4545 return <T extends new(...args: any[]) => {}>(constructor: T) => {
4646 return class extends constructor {
@@ -64,7 +64,7 @@ test("Class decorator with variable parameters", () => {
6464} ) ;
6565
6666test ( "Multiple class decorators" , ( ) => {
67- util . fn `
67+ util . testFunction `
6868 function SetTen<T extends { new(...args: any[]): {} }>(constructor: T) {
6969 return class extends constructor {
7070 decoratorTen = 10;
@@ -92,7 +92,7 @@ test("Multiple class decorators", () => {
9292} ) ;
9393
9494test ( "Class decorator with inheritance" , ( ) => {
95- util . fn `
95+ util . testFunction `
9696 function SetTen<T extends { new(...args: any[]): {} }>(constructor: T) {
9797 return class extends constructor {
9898 decoratorTen = 10;
@@ -122,7 +122,7 @@ test("Class decorator with inheritance", () => {
122122} ) ;
123123
124124test ( "Class decorators are applied in order and executed in reverse order" , ( ) => {
125- util . fn `
125+ util . testFunction `
126126 const order = [];
127127
128128 function SetString(stringArg: string) {
@@ -168,7 +168,7 @@ test("Throws error if decorator function has void context", () => {
168168} ) ;
169169
170170test ( "Exported class decorator" , ( ) => {
171- util . mod `
171+ util . testModule `
172172 function decorator<T extends any>(c: T): T {
173173 c.bar = "foobar";
174174 return c;
0 commit comments