Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #534 from atom/failing-test-beta
Browse files Browse the repository at this point in the history
Fixes failing CI build
  • Loading branch information
lkashef authored May 8, 2020
2 parents 77c2453 + e807e86 commit 233cb02
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/editor-binding.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ changed. The stable and beta version of atom still uses electron 4 inorder to su
versions, the assertions need to be made accordingly. In the future when stable and beta start compiling against
electron 5, these assertions will be simplified.
*/
const isDevBuild = atom.getAppName().toLowerCase().indexOf('atom dev') > -1
const appName = atom.getAppName().toLowerCase()
const isDevOrBetaBuild = appName.indexOf('atom dev') > -1 || appName.indexOf('atom beta') > -1

suite('EditorBinding', function () {
if (process.env.CI) this.timeout(process.env.TEST_TIMEOUT_IN_MS)
Expand Down Expand Up @@ -107,7 +108,7 @@ suite('EditorBinding', function () {

const cursorDecoratedRanges = getCursorDecoratedRanges(editor)

if (isDevBuild) {
if (isDevOrBetaBuild) {
return assert.deepEqual(
cursorDecoratedRanges,
[
Expand Down Expand Up @@ -163,7 +164,7 @@ suite('EditorBinding', function () {

const cursorDecoratedRanges = getCursorDecoratedRanges(editor)

if (isDevBuild) {
if (isDevOrBetaBuild) {
return assert.deepEqual(
cursorDecoratedRanges,
[
Expand Down Expand Up @@ -266,7 +267,7 @@ suite('EditorBinding', function () {

const cursorDecoratedRanges = getCursorDecoratedRanges(editor)

if (isDevBuild) {
if (isDevOrBetaBuild) {
return assert.deepEqual(
cursorDecoratedRanges,
[
Expand Down

0 comments on commit 233cb02

Please sign in to comment.