forked from lgollut/meteor-foundation5-sass
-
Notifications
You must be signed in to change notification settings - Fork 6
/
test.js
19 lines (15 loc) · 776 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Tinytest.add("foundation - Styles should be applied", function (test) {
var component = UI.render(Template.foundationTestTemplate);
var tI = component.templateInstance;
UI.insert(component, document.body);
test.equal(getStyleProperty(document.getElementById('testbutton'), "background-color"), "rgb(0, 140, 186)");
var elem = document.getElementById('testtemplate');
elem.parentNode.removeChild(elem);
});
// Tinytest.add("foundation - Kitchen Sink should be available", function (test) {
// var onscreenDiv = UI.render(Template.kitchensink);
// test.isTrue(onscreenDiv.view.isCreated);
// });
Tinytest.add("foundation - JavaScript extensions should be loaded", function (test) {
test.isTrue(typeof $.fn.foundation !== 'undefined');
});