update to tests

This commit is contained in:
Sam Vloeberghs
2015-12-04 10:10:36 +01:00
parent b925bea66f
commit 60205dabae
3 changed files with 77 additions and 119 deletions
+76 -73
View File
@@ -7,90 +7,93 @@
/// <reference path="foundation.d.ts" />
$(document).foundation();
$(document).foundation('method');
$(document).foundation('method5');
$(document).foundation(['method', 'method2']);
function pluginList() {
Foundation.Abide($('.selector'));
Foundation.Abide($('.selector'), {});
'use strict';
Foundation.Accordion($('.selector'));
Foundation.Accordion($('.selector'), {});
return [
'Abide',
'Accordion',
'AccordionMenu',
'DrillDown',
'Dropdown',
'DropdownMenu',
'Equalizer',
'Interchange',
'Magellan',
'OffCanvas',
'Orbit',
'Reveal',
'Slider',
'Sticky',
'Tabs',
'Toggler',
'Tooltip'
];
}
Foundation.AccordionMenu($('.selector'));
Foundation.AccordionMenu($('.selector'), {});
pluginList().forEach((value:string) => {
Foundation[value]($('.selector'));
Foundation[value]($('.selector'), {});
});
Foundation.DrillDown($('.selector'));
Foundation.DrillDown($('.selector'), {});
Foundation.Dropdown($('.selector'));
Foundation.Dropdown($('.selector'), {});
Foundation.DropdownMenu($('.selector'));
Foundation.DropdownMenu($('.selector'), {});
Foundation.Equalizer($('.selector'));
Foundation.Equalizer($('.selector'), {});
Foundation.Interchange($('.selector'));
Foundation.Interchange($('.selector'), {});
Foundation.Magellan($('.selector'));
Foundation.Magellan($('.selector'), {});
Foundation.OffCanvas($('.selector'));
Foundation.OffCanvas($('.selector'), {});
Foundation.Orbit($('.selector'));
Foundation.Orbit($('.selector'), {});
Foundation.Reveal($('.selector'));
Foundation.Reveal($('.selector'), {});
Foundation.Slider($('.selector'));
Foundation.Slider($('.selector'), {});
Foundation.Sticky($('.selector'));
Foundation.Sticky($('.selector'), {});
Foundation.Tabs($('.selector'));
Foundation.Tabs($('.selector'), {});
Foundation.Toggler($('.selector'));
Foundation.Toggler($('.selector'), {});
Foundation.Tooltip($('.selector'));
Foundation.Tooltip($('.selector'), {});
/*
Foundation.Abide($('.selector'));
Foundation.Abide($('.selector'), {});
TODO: fix this:
error TS7017: Index signature of object type implicitly has an 'any' type.
Foundation.Accordion($('.selector'));
Foundation.Accordion($('.selector'), {});
function pluginList() {
Foundation.AccordionMenu($('.selector'));
Foundation.AccordionMenu($('.selector'), {});
'use strict';
Foundation.DrillDown($('.selector'));
Foundation.DrillDown($('.selector'), {});
return [
'Abide',
'Accordion',
'AccordionMenu',
'DrillDown',
'Dropdown',
'DropdownMenu',
'Equalizer',
'Interchange',
'Magellan',
'OffCanvas',
'Orbit',
'Reveal',
'Slider',
'Sticky',
'Tabs',
'Toggler',
'Tooltip'
];
}
Foundation.Dropdown($('.selector'));
Foundation.Dropdown($('.selector'), {});
Foundation.DropdownMenu($('.selector'));
Foundation.DropdownMenu($('.selector'), {});
Foundation.Equalizer($('.selector'));
Foundation.Equalizer($('.selector'), {});
Foundation.Interchange($('.selector'));
Foundation.Interchange($('.selector'), {});
Foundation.Magellan($('.selector'));
Foundation.Magellan($('.selector'), {});
Foundation.OffCanvas($('.selector'));
Foundation.OffCanvas($('.selector'), {});
Foundation.Orbit($('.selector'));
Foundation.Orbit($('.selector'), {});
Foundation.Reveal($('.selector'));
Foundation.Reveal($('.selector'), {});
Foundation.Slider($('.selector'));
Foundation.Slider($('.selector'), {});
Foundation.Sticky($('.selector'));
Foundation.Sticky($('.selector'), {});
Foundation.Tabs($('.selector'));
Foundation.Tabs($('.selector'), {});
Foundation.Toggler($('.selector'));
Foundation.Toggler($('.selector'), {});
Foundation.Tooltip($('.selector'));
Foundation.Tooltip($('.selector'), {});
pluginList().forEach((value:string) => {
Foundation[value]($('.selector'));
Foundation[value]($('.selector'), {});
});
*/
+1 -1
View File
@@ -9,7 +9,7 @@ declare module FoundationSites {
// http://foundation.zurb.com/sites/docs/abide.html#javascript-reference
interface Abide {
requiredCheck(element:Object): boolean;
requiredChedck(element:Object): boolean;
findLabel(element:Object): boolean;
addErrorClasses(element:Object): void;
removeErrorClasses(element:Object): void;
-45
View File
@@ -1,45 +0,0 @@
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/4.2.1/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'test' ]
2 info using npm@3.3.9
3 info using node@v4.2.1
4 verbose run-script [ 'pretest', 'test', 'posttest' ]
5 info lifecycle DefinitelyTyped@0.0.1~pretest: DefinitelyTyped@0.0.1
6 silly lifecycle DefinitelyTyped@0.0.1~pretest: no script for pretest, continuing
7 info lifecycle DefinitelyTyped@0.0.1~test: DefinitelyTyped@0.0.1
8 verbose lifecycle DefinitelyTyped@0.0.1~test: unsafe-perm in lifecycle true
9 verbose lifecycle DefinitelyTyped@0.0.1~test: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Volumes/Data/Kwerri/playground/DefinitelyTyped/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin
10 verbose lifecycle DefinitelyTyped@0.0.1~test: CWD: /Volumes/Data/Kwerri/playground/DefinitelyTyped
11 silly lifecycle DefinitelyTyped@0.0.1~test: Args: [ '-c', 'dt --changes' ]
12 silly lifecycle DefinitelyTyped@0.0.1~test: Returned: code: 1 signal: null
13 info lifecycle DefinitelyTyped@0.0.1~test: Failed to exec test script
14 verbose stack Error: DefinitelyTyped@0.0.1 test: `dt --changes`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:233:16)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at EventEmitter.emit (events.js:172:7)
14 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at ChildProcess.emit (events.js:172:7)
14 verbose stack at maybeClose (internal/child_process.js:818:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid DefinitelyTyped@0.0.1
16 verbose cwd /Volumes/Data/Kwerri/playground/DefinitelyTyped/foundation-sites
17 error Darwin 15.0.0
18 error argv "/usr/local/Cellar/node/4.2.1/bin/node" "/usr/local/bin/npm" "run" "test"
19 error node v4.2.1
20 error npm v3.3.9
21 error code ELIFECYCLE
22 error DefinitelyTyped@0.0.1 test: `dt --changes`
22 error Exit status 1
23 error Failed at the DefinitelyTyped@0.0.1 test script 'dt --changes'.
23 error This is most likely a problem with the DefinitelyTyped package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error dt --changes
23 error You can get their info via:
23 error npm owner ls DefinitelyTyped
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]