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
describe('Test de datos de diferentes usuarios de Github',()=>{
10
+
beforeEach(()=>{
11
+
nock('https://api.github.com')
12
+
.log(console.log)
13
+
.get('/users/mugan86').
14
+
reply(403,error403);
15
+
});
16
+
it('Error 403 demasiadas request en un intervalo corto',()=>{
17
+
returnobtenerUsuario('mugan86').then(
18
+
respuesta=>{
19
+
// Probar el tipo de variable que obtenemos de repsuesta. Tiene que ser un objeto.
20
+
expect(typeofrespuesta).to.equal('object');
21
+
22
+
// Comprobar que el usuario de la API es mugan86
23
+
expect(respuesta.message).to.equal('API rate limit exceeded for 83.213.183.48. (But here\'s the good news: Authenticated requests get a higher rate limit. Checkout the documentation for more details.)');
message: 'API rate limit exceeded for 83.213.183.48. (But here\'s the good news: Authenticated requests get a higher rate limit. Checkout the documentation for more details.)',
0 commit comments