fix(sound): Don't play sounds in specs

This commit is contained in:
Ben Gotow 2015-02-23 15:13:18 -08:00
parent 3b0fc853fb
commit 10e9b62ab8

View file

@ -651,6 +651,7 @@ class Atom extends Model
@emitter.emit 'did-beep'
playSound: (filename) ->
return if @inSpecMode()
{resourcePath} = atom.getLoadSettings()
a = new Audio()
a.src = path.join(resourcePath, 'static', 'sounds', filename)