Skip to content

Commit e5f453c

Browse files
author
Danny McCormick
committed
Fixing small issue with initialization promise test
1 parent 53e1c8d commit e5f453c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/units/vsoClientTests.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,10 @@ describe('VSOClient Units', function () {
152152
});
153153

154154
//Act
155-
vsoClient._setInitializationPromise(new Promise(() => {
155+
vsoClient._setInitializationPromise(new Promise(resolve => {
156156
vsoClient.baseUrl = 'https://newbase.com';
157157
resolve();
158158
}));
159-
vsoClient._setInitializationPromise(Promise.resolve());
160159
const res: vsom.ClientVersioningData = await vsoClient.getVersioningData('1', 'testArea6', 'testLocation', {'testKey': 'testValue'}, null);
161160

162161
//Assert

0 commit comments

Comments
 (0)