Skip to content

Commit 084c1b4

Browse files
committed
fix test case
1 parent dc31929 commit 084c1b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/core/src/test/awsService/ec2/explorer/ec2InstanceNode.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,15 @@ describe('ec2InstanceNode', function () {
129129
const childRefresh = sinon.stub(Ec2InstanceNode.prototype, 'refreshNode')
130130

131131
await refreshExplorerNode(testNode)
132-
sinon.assert.calledOn(parentRefresh, testParentNode)
132+
133+
sinon.assert.called(parentRefresh)
134+
sinon.assert.notCalled(childRefresh)
133135

134136
parentRefresh.resetHistory()
135137

136138
await refreshExplorerNode(testParentNode)
137-
sinon.assert.calledOn(parentRefresh, testParentNode)
138139

140+
sinon.assert.called(parentRefresh)
139141
sinon.assert.notCalled(childRefresh)
140142

141143
parentRefresh.restore()

0 commit comments

Comments
 (0)