Skip to content

Commit

Permalink
fix: fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Jul 21, 2020
1 parent 5a0b06d commit 8eaf313
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ test('custom slug history', async t => {
t.true(Array.isArray(blogPost.toObject().slug_history));
});

test('getUnqiueSlug static', async t => {
test('getUniqueSlug static', async t => {
const blogPost = await BlogPosts.create({ title: 'getUniqueSlug static' });

t.is(
Expand All @@ -122,15 +122,15 @@ test('getUnqiueSlug static', async t => {
);
});

test('getUnqiueSlug static > no str', async t => {
test('getUniqueSlug static > no str', async t => {
const blogPost = await BlogPosts.create({ title: 'getUniqueSlug no str' });

await t.throwsAsync(async () => BlogPosts.getUniqueSlug(blogPost._id), {
message: 'The `str` argument was missing'
});
});

test('getUnqiueSlug static > hidden', async t => {
test('getUniqueSlug static > hidden', async t => {
const Schema = new mongoose.Schema({ title: String });
Schema.plugin(mongooseSlugPlugin, {
paranoid: 'hidden',
Expand Down

0 comments on commit 8eaf313

Please sign in to comment.