Skip to content

Commit

Permalink
Fix application title unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
fxha committed Dec 13, 2018
1 parent a32a2ec commit 2dea99d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -51,9 +51,11 @@ install:
script:
- yarn run lint

# Unit and e2e tests
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then xvfb-run --server-args="-screen 0 1024x768x24" yarn run test ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then yarn run test ; fi

# Build binaries
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then yarn run release:linux ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then yarn run release:mac ; fi

Expand Down
3 changes: 2 additions & 1 deletion test/e2e/specs/Launch.spec.js
Expand Up @@ -7,7 +7,8 @@ describe('Launch', function () {
it('shows the proper application title', function () {
return this.app.client.getTitle()
.then(title => {
expect(title).to.equal('Untitled-1')
const title = process.platform === 'darwin' ? 'Mark Text' : 'Untitled-1'
expect(title).to.equal(title)
})
})
})

0 comments on commit 2dea99d

Please sign in to comment.