Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jpogran committed Dec 10, 2021
1 parent 3a275b5 commit b862d68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/integration/statusBar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as assert from 'assert';
import * as vscode from 'vscode';
import { expect } from 'chai';
import { terraformStatus, updateTerraformStatusBar } from '../../extension';
import { getDocUri } from '../helper';
import { getDocUri, open } from '../helper';

suite('statusBar', () => {
teardown(async () => {
Expand All @@ -15,13 +15,15 @@ suite('statusBar', () => {

test('should create a status bar with the root module label', async () => {
const documentUri = getDocUri('sample.tf');
await open(documentUri);
await updateTerraformStatusBar(documentUri);

expect(terraformStatus.text).to.equal('$(refresh) testFixture');
});

test('should create an empty status bar inside a child module', async () => {
const documentUri = getDocUri('modules/sample.tf');
await open(documentUri);
await updateTerraformStatusBar(documentUri);

expect(terraformStatus.text).to.equal('');
Expand Down

0 comments on commit b862d68

Please sign in to comment.