From eb73a4796ed6774df3715ed6d82d1b97f963aabc Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Sun, 7 Apr 2019 09:53:43 +0000 Subject: [PATCH] Add more tests for the TypeScript definition (#12) --- index.test-d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/index.test-d.ts b/index.test-d.ts index a617027..fa4cf5d 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -6,4 +6,15 @@ const callsite = callsites()[0]; expectType(callsites()); expectType(callsite.getThis()); +expectType(callsite.getTypeName()); +expectType(callsite.getFunction()); +expectType(callsite.getFunctionName()); +expectType(callsite.getMethodName()); +expectType(callsite.getFileName()); +expectType(callsite.getLineNumber()); +expectType(callsite.getColumnNumber()); +expectType(callsite.getEvalOrigin()); +expectType(callsite.isToplevel()); +expectType(callsite.isEval()); +expectType(callsite.isNative()); expectType(callsite.isConstructor());