From 6eea5834fa91716914c604464c4fd4d2ba032ac8 Mon Sep 17 00:00:00 2001 From: Vince Picone Date: Thu, 7 Feb 2019 09:56:03 -0600 Subject: [PATCH] add tests --- types/carbon__motion/carbon__motion-tests.ts | 8 ++++++++ types/carbon__motion/index.d.ts | 7 ++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/types/carbon__motion/carbon__motion-tests.ts b/types/carbon__motion/carbon__motion-tests.ts index e69de29bb2..6bcc820f5d 100644 --- a/types/carbon__motion/carbon__motion-tests.ts +++ b/types/carbon__motion/carbon__motion-tests.ts @@ -0,0 +1,8 @@ +import { easings, motion } from "@carbon/motion"; + +const easingNames = Object.keys(easings); + +const firstEasing = easingNames[0]; +const firstMode = Object.keys(firstEasing)[0]; + +motion(firstEasing, firstMode); diff --git a/types/carbon__motion/index.d.ts b/types/carbon__motion/index.d.ts index 9570133327..5027843174 100644 --- a/types/carbon__motion/index.d.ts +++ b/types/carbon__motion/index.d.ts @@ -18,11 +18,8 @@ export const easings: { }; }; -export function motion(name: any, mode: any): any; +export function motion(name: string, mode: string): string; export namespace motion { - const prototype: { - }; - + const prototype: {}; } -