Skip to content

Commit ac7bdd7

Browse files
author
young-gratia
committed
Fix typo in queries.spec.js
1 parent 0bce58a commit ac7bdd7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

exercises/queries/__test__/queries.spec.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ describe('queries', () => {
4646
const author = mongoose.Types.ObjectId()
4747

4848
const posts = await Post.create([
49-
{title: 'Super Duper', author, content: createConent(1000), contentLength: 1000},
50-
{title: 'Amazing', author, content: createConent(100), contentLength: 100},
49+
{title: 'Super Duper', author, content: createContent(1000), contentLength: 1000},
50+
{title: 'Amazing', author, content: createContent(100), contentLength: 100},
5151
{title: 'Other', author, content: createContent(800), contentLength: 800}
5252
])
5353

@@ -64,13 +64,13 @@ describe('queries', () => {
6464
const post = await Post.create({
6565
title: 'Super Duper',
6666
author: author.id,
67-
content: createConent(1000),
67+
content: createContent(1000),
6868
contentLength: 1000
6969
})
70-
const post2 = await Post.creatte({
70+
const post2 = await Post.create({
7171
author: author.id,
7272
title: 'Post 2',
73-
content: createConent(100),
73+
content: createContent(100),
7474
contentLength: 100,
7575
similarPosts: [post.id]
7676
})
@@ -83,8 +83,8 @@ describe('queries', () => {
8383
test('only selects fields given', async () => {
8484
const author = mongoose.Types.ObjectId()
8585
await Post.create([
86-
{title: 'learn things', content: createConent(100), contentLength: 100, author},
87-
{title: 'lean more things', content: createConent(100), contentLength: 100, author},
86+
{title: 'learn things', content: createContent(100), contentLength: 100, author},
87+
{title: 'lean more things', content: createContent(100), contentLength: 100, author},
8888
{title: 'lean more things++', content: createContent(100), contentLength: 100, author}
8989
])
9090

@@ -98,7 +98,7 @@ describe('queries', () => {
9898
})
9999
})
100100
describe('addRelatedPosts', () => {
101-
test('should not overrided related posts that are there', async () => {
101+
test('should not override related posts that are there', async () => {
102102
const author = mongoose.Types.ObjectId()
103103
const post = await Post.create({
104104
author,

0 commit comments

Comments
 (0)