VulpesOS/gaia/apps/sharedtest/test/unit/manifest_helper_test.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

28 lines
602 B
JavaScript
Executable file

'use strict';
/* global ManifestHelper */
require('/shared/js/manifest_helper.js');
suite('Manifest Helper', function() {
var manifest = {
'name': 'Long Name'
};
var manifestWithShortName = {
'name': 'Long Name',
'short_name': 'Short Name'
};
test('displayName with short name', function() {
var helper = new ManifestHelper(manifestWithShortName);
assert.equal('Short Name', helper.displayName);
});
test('displayName with no short name', function() {
var helper = new ManifestHelper(manifest);
assert.equal('Long Name', helper.displayName);
});
});