Skip to content

Instantly share code, notes, and snippets.

View mdix's full-sized avatar
🇩🇰

Marc Dix mdix

🇩🇰
View GitHub Profile
@mdix
mdix / someTest.js
Created December 18, 2014 12:35
jasmine data provider
define(['lib/validator/rule.notEmpty'], function(_ruleNotEmpty_) {
describe('rule.notEmpty', function() {
var ruleNotEmpty;
beforeEach(function() {
ruleNotEmpty = new _ruleNotEmpty_();
});
describe('its checkField function', function() {
// just wrap an it in a loop (if you have jquery you can use each)