VulpesOS/gaia/tests/jsmarionette/runner/mozilla-profile-builder/test/index.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

23 lines
775 B
JavaScript
Executable file

/* global assert */
'use strict';
suite('mozprofilebuilder', function() {
var subject = require('../index'),
Profile = require('../lib/profile'),
fs = require('fs');
test('without options', function(done) {
subject.create({}, function(err, profile) {
if (err) return done(err);
assert.ok(profile instanceof Profile, 'is Profile instance');
assert.ok(fs.existsSync(profile.path), 'path exists');
done();
});
});
test('with options', function(done) {
// mostly to make sure things don't explode- this functionality
// should be 100% covered from the unit level and we should cover
// the rest at the integration test level if possible.
subject.create({ settings: {}, prefs: {}, apps: {} }, done);
});
});