You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect(log.consoleProps['Response Body']).to.include('Cannot GET /some-url')
117
+
expect(log.consoleProps['Response Status Code']).to.eq(404)
118
+
119
+
expect(log.renderProps).to.include({
120
+
indicator: 'bad',
121
+
message: 'GET 404 /some-url',
122
+
})
123
+
124
+
expect(Object.keys(log.consoleProps)).to.deep.eq(
125
+
['Event','Resource Type','Method','URL','Request went to origin?','XHR','groups','Request Headers','Response Status Code','Response Headers','Response Body'],
126
+
)
127
+
128
+
done()
129
+
}catch(err){
130
+
// eslint-disable-next-line no-console
131
+
console.log('assertion error, retrying',err)
132
+
}
133
+
})
134
+
135
+
constxhr=newwin.XMLHttpRequest()
136
+
137
+
xhr.open('GET','/some-url')
138
+
xhr.send()
139
+
})
140
+
})
141
+
109
142
it('does not log an unintercepted non-xhr/fetch request',(done)=>{
0 commit comments