Skip to content

Commit

Permalink
chore: Update global.tests.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Nov 20, 2019
1 parent 947571d commit d483247
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/global.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ nameof.toArray(testInstance.prop1); // $ExpectType string[]
nameof.toArray(testInstance.prop1, testInstance.prop2); // $ExpectType string[]
nameof.toArray<TestClass>(t => [t.prop1]); // $ExpectType string[]

// nameof.split tests
nameof.split(testInstance.prop1); // $ExpectType string[]
nameof.split(testInstance.prop1, 1); // $ExpectType string[]
nameof.split<TestClass>(obj => obj.prop1); // $ExpectType string[]
nameof.split<TestClass>(obj => obj.prop1, 1); // $ExpectType string[]

// nameof.interpolate tests
nameof.interpolate(""); // $ExpectType ""

Expand Down

0 comments on commit d483247

Please sign in to comment.