Gestion des imports dans les profils

This commit is contained in:
2015-11-05 14:39:48 +01:00
parent bb26fc2759
commit 996ccd90f1
8 changed files with 101 additions and 23 deletions

19
test/profile.js Normal file
View File

@ -0,0 +1,19 @@
var Profile = require('../src/util/profile');
var ProfileSuite = module.exports = {};
ProfileSuite.loadProfileWithImport = function(test) {
Profile.load(__dirname+'/../default-profile.json')
.then(function(profile) {
console.log('%j', 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();
})
;
};