pitaya-launcher/test/profile.js

19 lines
445 B
JavaScript
Raw Permalink Normal View History

2015-11-05 14:39:48 +01:00
var Profile = require('../src/util/profile');
var ProfileSuite = module.exports = {};
ProfileSuite.loadProfileWithImport = function(test) {
Profile.load(__dirname+'/../default-profile.json')
.then(function(profile) {
test.ok(profile.items[0].label === "Partial Level 1", "It should have loaded the partial import !");
test.done();
})
.catch(function(err) {
test.ifError(err);
test.done();
})
;
};