提交 f288e3ae 编写于 作者: B Benjamin Pasero

fix tests

上级 8692734a
......@@ -17,7 +17,6 @@ suite('Telemetry - common properties', function () {
test('default', function () {
return resolveWorkbenchCommonProperties(new TestStorageService(), commit, version).then(props => {
assert.ok('commitHash' in props);
assert.ok('sessionID' in props);
assert.ok('timestamp' in props);
......@@ -37,12 +36,13 @@ suite('Telemetry - common properties', function () {
// machine id et al
assert.ok('common.instanceId' in props, 'instanceId');
assert.ok('common.machineId' in props, 'machineId');
assert.ok('common.machineIdExperiment' in props, 'machineIdExperiment');
if (process.platform === 'win32') { // SQM only on windows
assert.ok('common.sqm.userid' in props, 'userid');
assert.ok('common.sqm.machineid' in props, 'machineid');
}
assert.equal(Object.keys(props).length, process.platform === 'win32' ? 17 : 15);
assert.equal(Object.keys(props).length, process.platform === 'win32' ? 18 : 16);
});
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册