Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/hydraPublic

Commite9a1358

Browse files
test: use to deep equal
1 parentd4115e2 commite9a1358

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

‎cypress/integration/oauth2/refresh_token.js‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe("The OAuth 2.0 Refresh Token Grant", function () {
9090
})
9191
})
9292

93-
it("should narrow Refresh Tokenscopes correctly",function(){
93+
it("should narrowand broadedRefresh Tokenscope correctly",function(){
9494
constreferrer=`${Cypress.env("client_url")}/empty`
9595
cy.visit(referrer,{
9696
failOnStatusCode:false,
@@ -109,23 +109,21 @@ describe("The OAuth 2.0 Refresh Token Grant", function () {
109109
}).then((originalResponse)=>{
110110
expect(originalResponse.status).to.eq(200)
111111
expect(originalResponse.body.refresh_token).to.not.be.empty
112-
expect(originalResponse.body.scope).to.eq("offline_accessopenidfoobarbaz")
112+
expect(originalResponse.body.scope).to.deep.equal(["offline_access","openid","foo","bar","baz"])
113113

114114
constoriginalToken=originalResponse.body.refresh_token
115115

116-
cy.refreshTokenBrowserScope(client,originalToken,"offline_access openid foo").then(
117-
(refreshedResponse)=>{
116+
cy.refreshTokenBrowserScope(client,originalToken,"offline_access openid foo").then((refreshedResponse)=>{
118117
expect(refreshedResponse.status).to.eq(200)
119118
expect(refreshedResponse.body.refresh_token).to.not.be.empty
120-
expect(refreshedResponse.body.scope).to.eq("offline_accessopenidfoo")
119+
expect(refreshedResponse.body.scope).to.deep.equal(["offline_access","openid","foo"])
121120

122121
constrefreshedToken=refreshedResponse.body.refresh_token
123122

124-
cy.refreshTokenBrowserScope(client,refreshedToken,"offline_access openid foo bar baz").then(
125-
(finalRefreshedResponse)=>{
123+
cy.refreshTokenBrowserScope(client,refreshedToken,"offline_access openid foo bar").then((finalRefreshedResponse)=>{
126124
expect(finalRefreshedResponse.status).to.eq(200)
127125
expect(finalRefreshedResponse.body.refresh_token).to.not.be.empty
128-
expect(finalRefreshedResponse.body.scope).to.eq("offline_accessopenidfoobar baz")
126+
expect(finalRefreshedResponse.body.scope).to.deep.equal(["offline_access","openid","foo","bar"])
129127
},
130128
)
131129
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp