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

Commit b76f34b

Browse files
fixed typos
1 parent e0e904d commit b76f34b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

‎test/posts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('Posts', () => {
3333
};
3434

3535
const res = await request
36-
.post('postss')
36+
.post('posts')
3737
.set('Authorization', `Bearer ${TOKEN}`)
3838
.send(data);
3939

@@ -49,7 +49,7 @@ describe('Posts', () => {
4949
.set('Authorization', `Bearer ${TOKEN}`)
5050
.expect(200);
5151
} else {
52-
throw new Error`postId is invalid ${postId}`();
52+
throw new Error(`postId is invalid - ${postId}`);
5353
}
5454
});
5555
});

‎test/users-advanced.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const request = supertest('https://gorest.co.in/public-api/');
33

44
import { expect } from 'chai';
55

6-
const TOKEN = process.env.TOKEN;
6+
const TOKEN = process.env.USER_TOKEN;
77

88
describe('Users', () => {
99
let userId;

‎test/users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const request = supertest('https://gorest.co.in/public-api/');
33

44
import { expect } from 'chai';
55

6-
const TOKEN = process.env.TOKEN;
6+
const TOKEN = process.env.USER_TOKEN;
77

88
describe('Users', () => {
99
it('GET /users', () => {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /