easy-query
Version:
An easy to use, easy to customize sheet of SCSS media queries tailored for use alongside or without popular frameworks such as Bootstrap and Foundation.
19 lines (18 loc) • 628 B
JavaScript
describe('getParameterType', function() {
var param = arguments[0];
it('Should be a string, an array, or undefined', function() {
if(param) {
expect(typeof param).toBe('string');
expect(param.constructor).toBe(Array);
if(param.constructor === Array) {
it('Should contain only numbers', function() {
for(var x = 0; x < param.length; x++) {
expect(typeof param[x]).toBe('number');
}
});
}
} else {
expect(param).toBeUndefined();
}
})
});