expose appName in env, fixes #5297

This commit is contained in:
Johannes Rieken
2016-04-25 12:03:44 +02:00
parent ab8c06cad2
commit 5e7f6d8c92
3 changed files with 11 additions and 1 deletions

View File

@@ -12,12 +12,14 @@ suite('env-namespace', () => {
test('env is set', function() {
assert.equal(typeof env.language, 'string');
assert.equal(typeof env.appName, 'string');
assert.equal(typeof env.machineId, 'string');
assert.equal(typeof env.sessionId, 'string');
});
test('env is readonly', function() {
assert.throws(() => env.language = '234');
assert.throws(() => env.appName = '234');
assert.throws(() => env.machineId = '234');
assert.throws(() => env.sessionId = '234');
});