Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvmcosta committed May 10, 2021
1 parent 769ed93 commit f6d5da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/5-dynamicregistration.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('Testing Dynamic registration Service', function () {
return chai.request(lti.app).get(url).query(dynamicRegistrationRequest).then(async res => {
expect(res).to.have.status(200)
const response = res.text
expect(response).to.equal(`<script>window.parent.postMessage({subject:"org.imsglobal.lti.close"}, "${configurationInformation.issuer}");</script>`)
expect(response).to.equal('<script>(window.opener || window.parent).postMessage({subject:"org.imsglobal.lti.close"}, "*");</script>')
const platform = await lti.getPlatform('http://localhost/moodledyn', '123456')
expect(platform).to.be.instanceOf(Platform)
await expect(platform.platformActive()).to.eventually.equal(false)
Expand Down

0 comments on commit f6d5da7

Please sign in to comment.