mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
fix(specs): Don't check for updates during spec runs
This commit is contained in:
parent
b11ab8406b
commit
96b22c0b55
1 changed files with 5 additions and 4 deletions
|
@ -4,6 +4,7 @@ url = require 'url'
|
|||
describe "AutoUpdateManager", ->
|
||||
beforeEach ->
|
||||
@updateIdentity = null
|
||||
@specMode = true
|
||||
@config =
|
||||
set: jasmine.createSpy('config.set')
|
||||
get: (key) =>
|
||||
|
@ -14,7 +15,7 @@ describe "AutoUpdateManager", ->
|
|||
|
||||
describe "with attached commit version", ->
|
||||
it "correctly sets the feedURL", ->
|
||||
m = new AutoUpdateManager("3.222.1-abc", @config)
|
||||
m = new AutoUpdateManager("3.222.1-abc", @config, @specMode)
|
||||
spyOn(m, "setupAutoUpdater")
|
||||
|
||||
{query} = url.parse(m.feedUrl, true)
|
||||
|
@ -24,7 +25,7 @@ describe "AutoUpdateManager", ->
|
|||
|
||||
describe "with no attached commit", ->
|
||||
it "correctly sets the feedURL", ->
|
||||
m = new AutoUpdateManager("3.222.1", @config)
|
||||
m = new AutoUpdateManager("3.222.1", @config, @specMode)
|
||||
spyOn(m, "setupAutoUpdater")
|
||||
{query} = url.parse(m.feedUrl, true)
|
||||
expect(query.arch).toBe process.arch
|
||||
|
@ -33,7 +34,7 @@ describe "AutoUpdateManager", ->
|
|||
|
||||
describe "when an update identity is not present", ->
|
||||
it "should save one to @config and send it", ->
|
||||
m = new AutoUpdateManager("3.222.1", @config)
|
||||
m = new AutoUpdateManager("3.222.1", @config, @specMode)
|
||||
spyOn(m, "setupAutoUpdater")
|
||||
{query} = url.parse(m.feedUrl, true)
|
||||
|
||||
|
@ -43,7 +44,7 @@ describe "AutoUpdateManager", ->
|
|||
describe "when an update identity is already set", ->
|
||||
it "should send it and not save any changes", ->
|
||||
@updateIdentity = "test-identity"
|
||||
m = new AutoUpdateManager("3.222.1", @config)
|
||||
m = new AutoUpdateManager("3.222.1", @config, @specMode)
|
||||
spyOn(m, "setupAutoUpdater")
|
||||
{query} = url.parse(m.feedUrl, true)
|
||||
|
||||
|
|
Loading…
Reference in a new issue