Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 0303dc5

Browse files
committed
Merge pull request #11275 from sprintr/fix-unittests
Fix unittests
2 parents 0cfcf9e + 2d3ad4a commit 0303dc5

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/widgets/StatusBar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ define(function (require, exports, module) {
145145
* @param {string=} tooltip Sets the attribute "title" of the indicator.
146146
*/
147147
function updateIndicator(id, visible, style, tooltip) {
148-
if (!_init) {
148+
if (!_init && !!brackets.test) {
149149
console.error("StatusBar API invoked before status bar created");
150150
return;
151151
}

test/SpecRunner.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ define(function (require, exports, module) {
5555
NativeApp = require("utils/NativeApp");
5656

5757
// Load modules for later use
58+
require("language/CodeInspection");
5859
require("thirdparty/lodash");
5960
require("editor/CodeHintManager");
6061
require("utils/Global");

0 commit comments

Comments
 (0)