Gestion des imports dans les profils
This commit is contained in:
19
test/profile.js
Normal file
19
test/profile.js
Normal 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();
|
||||
})
|
||||
;
|
||||
|
||||
};
|
Reference in New Issue
Block a user