Skip to content

Commit

Permalink
update this shared spec for old link as well
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafulmanda committed Feb 27, 2017
1 parent d1d0156 commit 375eccc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shared/specs/components/exercise-identifier-link.spec.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

ExerciseIdentifierLink = require 'components/exercise-identifier-link'

BASE = 'https://oscms-dev.openstax.org/errata/form'
BASE = 'https://docs.google.com/a/rice.edu/forms/d/e/1FAIpQLSd5rLsdKv75nkpary6dfJMRuw0bcqSetYV3hO-pFbzqqplM0Q/viewform'

describe 'Exercise Identifier Link', ->

Expand All @@ -14,7 +14,7 @@ describe 'Exercise Identifier Link', ->

it 'reads the parts from props and sets the url', ->
link = shallow(<ExerciseIdentifierLink {...@props} />)
expect(link).toHaveRendered("a[href=\"#{BASE}?source=tutor&location=Exercise%3A%201234%4042&book=College%20Physics\"]")
expect(link).toHaveRendered("a[href=\"#{BASE}?entry.649352110=1234%4042&entry.1091629000=College%20Physics\"]")
undefined

it 'falls back to context if props are missing', ->
Expand All @@ -25,7 +25,7 @@ describe 'Exercise Identifier Link', ->
oxProject: 'TESTING'
})
expect(link).toHaveRendered(
"a[href=\"#{BASE}?source=TESTING&location=Exercise%3A%201234%4042&book=Principles%20of%20Microeconomics\"]"
"a[href=\"#{BASE}?entry.649352110=1234%4042&entry.1091629000=Principles%20of%20Microeconomics\"]"
)
undefined

Expand Down

0 comments on commit 375eccc

Please sign in to comment.