Skip to content

Commit fc6cc6c

Browse files
committed
refactor shared method to be clearer
1 parent 14fba92 commit fc6cc6c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/core/src/test/applicationcomposer/messageHandlers/generateResourceHandler.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import sinon from 'sinon'
88
import { createTemplate, createWebviewContext } from '../utils'
99
import { generateResourceHandler } from '../../../applicationcomposer/messageHandlers/generateResourceHandler'
1010
import { Command, MessageType } from '../../../applicationcomposer/types'
11-
import { disableIfVscodeBelow } from '../../testUtil'
11+
import { skipIfVscodeBelow } from '../../testUtil'
1212

1313
describe('generateResourceHandler', function () {
1414
it('amazon q is not installed', async function () {
15-
disableIfVscodeBelow(this, '1.89.0')
15+
skipIfVscodeBelow(this, '1.89.0')
1616
const panel = await createTemplate()
1717
const postMessageSpy = sinon.spy(panel.webview, 'postMessage')
1818
const context = await createWebviewContext({

packages/core/src/test/applicationcomposer/messageHandlers/initMessageHandler.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import assert from 'assert'
77
import sinon from 'sinon'
88
import { initMessageHandler } from '../../../applicationcomposer/messageHandlers/initMessageHandler'
99
import { createTemplate, createWebviewContext } from '../utils'
10-
import { disableIfVscodeBelow } from '../../testUtil'
10+
import { skipIfVscodeBelow } from '../../testUtil'
1111

1212
describe('initMessageHandler', function () {
1313
it('not connected to codewhisperer', async function () {
14-
disableIfVscodeBelow(this, '1.89.0')
14+
skipIfVscodeBelow(this, '1.89.0')
1515
const panel = await createTemplate()
1616
const postMessageSpy = sinon.spy(panel.webview, 'postMessage')
1717
const context = await createWebviewContext({

0 commit comments

Comments
 (0)