-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtests.js
47 lines (37 loc) · 1.75 KB
/
tests.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import {Tinytest} from 'meteor/tinytest';
import {getStyleProperty} from 'meteor/test-helpers';
Tinytest.add("bootstrap3-sass - SCSS variables should be available", function(test) {
var $div = $('<div class="test-screen-xs-width"></div>');
$('body').append($div);
test.equal(getStyleProperty($div[0], "width"), "480px");
$div.remove();
});
Tinytest.add("bootstrap3-sass - SCSS class should be extendable", function(test) {
var $div = $('<div class="test-btn-extended"></div>');
$('body').append($div);
test.equal(getStyleProperty($div[0], "display"), "inline-block");
test.equal(getStyleProperty($div[0], "text-align"), "center");
$div.remove();
});
Tinytest.add("bootstrap3-sass - SCSS mixins should be available", function(test) {
var $div = $('<div class="test-button-variant"></div>');
$('body').append($div);
test.equal(getStyleProperty($div[0], "color"), "rgb(0, 0, 0)");
test.equal(getStyleProperty($div[0], "background-color"), "rgb(255, 255, 255)");
test.equal(getStyleProperty($div[0], "border-color"), "rgb(136, 136, 136)");
$div.remove();
});
Tinytest.add("bootstrap3-sass - jQuery extensions should be loaded", function(test) {
test.isTrue(typeof $.fn.affix !== 'undefined');
test.isTrue(typeof $.fn.alert !== 'undefined');
test.isTrue(typeof $.fn.button !== 'undefined');
test.isTrue(typeof $.fn.carousel !== 'undefined');
test.isTrue(typeof $.fn.collapse !== 'undefined');
test.isTrue(typeof $.fn.dropdown !== 'undefined');
test.isTrue(typeof $.fn.modal !== 'undefined');
test.isTrue(typeof $.fn.popover !== 'undefined');
test.isTrue(typeof $.fn.scrollspy !== 'undefined');
test.isTrue(typeof $.fn.tab !== 'undefined');
test.isTrue(typeof $.fn.tooltip !== 'undefined');
test.isTrue(typeof $.fn.emulateTransitionEnd !== 'undefined');
});