diff --git a/bsc-plugin/src/lib/rooibos/RooibosSession.ts b/bsc-plugin/src/lib/rooibos/RooibosSession.ts index 757f5fd6..2af7551e 100644 --- a/bsc-plugin/src/lib/rooibos/RooibosSession.ts +++ b/bsc-plugin/src/lib/rooibos/RooibosSession.ts @@ -12,7 +12,7 @@ import { diagnosticErrorNoMainFound as diagnosticWarnNoMainFound, diagnosticNoSt import undent from 'undent'; import { BrsTranspileState } from 'brighterscript/dist/parser/BrsTranspileState'; import * as fsExtra from 'fs-extra'; -import { MockUtil } from './MockUtil'; +import type { MockUtil } from './MockUtil'; // eslint-disable-next-line const pkg = require('../../../package.json'); diff --git a/bsc-plugin/src/lib/rooibos/Utils.ts b/bsc-plugin/src/lib/rooibos/Utils.ts index 782607f6..277ee654 100644 --- a/bsc-plugin/src/lib/rooibos/Utils.ts +++ b/bsc-plugin/src/lib/rooibos/Utils.ts @@ -80,14 +80,14 @@ export function getRootObjectFromDottedGet(value: brighterscript.DottedGetExpres } export function getStringPathFromDottedGet(value: brighterscript.DottedGetExpression) { - let parts = [this.getPathValuePartAsString(value)]; + let parts = [getPathValuePartAsString(value)]; let root; root = value.obj; while (root) { if (brighterscript.isCallExpression(root) || brighterscript.isCallfuncExpression(root)) { return undefined; } - parts.push(`${this.getPathValuePartAsString(root)}`); + parts.push(`${getPathValuePartAsString(root)}`); root = root.obj; } let joinedParts = parts.reverse().join('.'); diff --git a/bsc-plugin/src/plugin.spec.ts b/bsc-plugin/src/plugin.spec.ts index 7abe626f..c1150218 100644 --- a/bsc-plugin/src/plugin.spec.ts +++ b/bsc-plugin/src/plugin.spec.ts @@ -1526,7 +1526,7 @@ describe('RooibosPlugin', () => { }); describe('addTestRunnerMetadata', () => { - it.only('does not permanently modify the AST', async () => { + it('does not permanently modify the AST', async () => { program.setFile('source/test.spec.bs', ` @suite class ATest1 @@ -1534,7 +1534,6 @@ describe('RooibosPlugin', () => { @it("test1") function _() item = {id: "item"} - m.assertEqual(item, "wtf") m.expectNotCalled(item.getFunction()) m.expectNotCalled(item.getFunction()) end function @@ -1547,7 +1546,6 @@ describe('RooibosPlugin', () => { @it("test1") function _() item = {id: "item"} - m.assertEqual(item, "wtf") m.expectNotCalled(item.getFunction()) m.expectNotCalled(item.getFunction()) end function