mirror of
https://github.com/marktext/marktext.git
synced 2025-05-10 11:10:36 +08:00
18 lines
503 B
JavaScript
18 lines
503 B
JavaScript
import utils from '../utils'
|
|
|
|
describe('Launch', function () {
|
|
beforeEach(utils.beforeEach)
|
|
afterEach(utils.afterEach)
|
|
|
|
it('shows the proper application title', function () {
|
|
return this.app.client.getTitle()
|
|
.then(title => {
|
|
const result = /^Mark Text|Untitled-1 - Mark Text$/.test(title)
|
|
if (!result) {
|
|
console.error(`AssertionError: expected '${title}' to equal 'Mark Text' or 'Untitled-1'`)
|
|
expect(false).to.equal(true)
|
|
}
|
|
})
|
|
})
|
|
})
|