Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
🎨 Rename variable to increase clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrudolph committed May 24, 2017
1 parent e674e75 commit 84f9601
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/notifications-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ describe "Notifications", ->

describe "when the message is longer than 100 characters", ->
message = "Uncaught Error: Cannot find module 'dialog'Error: Cannot find module 'dialog' at Function.Module._resolveFilename (module.js:351:15) at Function.Module._load (module.js:293:25) at Module.require (module.js:380:17) at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/lib/rpc-server.js:128:79) at EventEmitter.emit (events.js:119:17) at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/atom/browser/api/lib/web-contents.js:99:23) at EventEmitter.emit (events.js:119:17)"
truncatedMessage = "Uncaught Error: Cannot find module 'dialog'Error: Cannot find module 'dialog' at Function.Module...."
expectedIssueTitle = "Uncaught Error: Cannot find module 'dialog'Error: Cannot find module 'dialog' at Function.Module...."

beforeEach ->
generateFakeFetchResponses()
Expand All @@ -700,7 +700,7 @@ describe "Notifications", ->
runs ->
button = fatalError.querySelector('.btn')
expect(button.textContent).toContain 'Create issue'
expect(fatalError.issue.getIssueTitle()).toBe(truncatedMessage)
expect(fatalError.issue.getIssueTitle()).toBe(expectedIssueTitle)

describe "when the package is out of date", ->
beforeEach ->
Expand Down

0 comments on commit 84f9601

Please sign in to comment.