File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ test('custom slug history', async t => {
113
113
t . true ( Array . isArray ( blogPost . toObject ( ) . slug_history ) ) ;
114
114
} ) ;
115
115
116
- test ( 'getUnqiueSlug static' , async t => {
116
+ test ( 'getUniqueSlug static' , async t => {
117
117
const blogPost = await BlogPosts . create ( { title : 'getUniqueSlug static' } ) ;
118
118
119
119
t . is (
@@ -122,15 +122,15 @@ test('getUnqiueSlug static', async t => {
122
122
) ;
123
123
} ) ;
124
124
125
- test ( 'getUnqiueSlug static > no str' , async t => {
125
+ test ( 'getUniqueSlug static > no str' , async t => {
126
126
const blogPost = await BlogPosts . create ( { title : 'getUniqueSlug no str' } ) ;
127
127
128
128
await t . throwsAsync ( async ( ) => BlogPosts . getUniqueSlug ( blogPost . _id ) , {
129
129
message : 'The `str` argument was missing'
130
130
} ) ;
131
131
} ) ;
132
132
133
- test ( 'getUnqiueSlug static > hidden' , async t => {
133
+ test ( 'getUniqueSlug static > hidden' , async t => {
134
134
const Schema = new mongoose . Schema ( { title : String } ) ;
135
135
Schema . plugin ( mongooseSlugPlugin , {
136
136
paranoid : 'hidden' ,
You can’t perform that action at this time.
0 commit comments