mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Reset document.title after each spec to prevent test pollution
This commit is contained in:
@@ -7,11 +7,14 @@ Point = require 'point'
|
||||
require 'window'
|
||||
window.showConsole()
|
||||
|
||||
defaultTitle = document.title
|
||||
|
||||
beforeEach ->
|
||||
window.resetTimeouts()
|
||||
|
||||
afterEach ->
|
||||
$('#jasmine-content').empty()
|
||||
document.title = defaultTitle
|
||||
|
||||
window.keymap.bindKeys '*', 'meta-w': 'close'
|
||||
$(document).on 'close', -> window.close()
|
||||
|
||||
Reference in New Issue
Block a user