mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
riotcontrol: added tests
This commit is contained in:
41
riotcontrol/riotcontrol-tests.ts
Normal file
41
riotcontrol/riotcontrol-tests.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
/// <reference path="./riotcontrol.d.ts" />
|
||||
|
||||
import riotcontrol = require('riotcontrol');
|
||||
|
||||
{
|
||||
let store: RiotControl.Store;
|
||||
let result: void;
|
||||
result = riotcontrol.addStore(store);
|
||||
}
|
||||
|
||||
{
|
||||
let events: string;
|
||||
let fn: Function;
|
||||
let result: void;
|
||||
result = riotcontrol.on(events, fn);
|
||||
}
|
||||
|
||||
{
|
||||
let name: string;
|
||||
let fn: Function;
|
||||
let result: void;
|
||||
result = riotcontrol.one(name, fn);
|
||||
}
|
||||
|
||||
{
|
||||
let events: string;
|
||||
let fn: Function;
|
||||
let result: void;
|
||||
result = riotcontrol.off(events);
|
||||
result = riotcontrol.off(events, fn);
|
||||
}
|
||||
|
||||
{
|
||||
let name: string;
|
||||
let arg: any;
|
||||
let result: void;
|
||||
result = riotcontrol.trigger(name);
|
||||
result = riotcontrol.trigger(name, arg);
|
||||
result = riotcontrol.trigger(name, arg, arg);
|
||||
result = riotcontrol.trigger(name, arg, arg, arg);
|
||||
}
|
||||
Reference in New Issue
Block a user