Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
35 lines
936 B
JavaScript
Executable file
35 lines
936 B
JavaScript
Executable file
/* global assert */
|
|
'use strict';
|
|
|
|
var baseProfile = __dirname + '/../fixtures/b2g-profile',
|
|
apps = require('../../lib/options/apps'),
|
|
createProfile = require('../../lib/createprofile');
|
|
|
|
suite('apps', function() {
|
|
suite('app installation', function() {
|
|
var options = {
|
|
apps: {
|
|
'testa.com': __dirname + '/../fixtures/test-app-a/',
|
|
'testb.com': __dirname + '/../fixtures/test-app-b/'
|
|
}
|
|
};
|
|
|
|
var profile;
|
|
setup(function(done) {
|
|
createProfile.baseProfile(baseProfile, function(err, _profile) {
|
|
if (err) return done(err);
|
|
profile = _profile;
|
|
apps(profile, options, done);
|
|
});
|
|
});
|
|
|
|
test('both apps are in primary manifest', function() {
|
|
var installedApps = require(profile + '/webapps/webapps.json');
|
|
|
|
assert.ok(installedApps['testa.com'], 'testa.com');
|
|
assert.ok(installedApps['testb.com'], 'testb.com');
|
|
});
|
|
});
|
|
|
|
});
|
|
|