Skip to content
Snippets Groups Projects
Commit 2c3a02b2 authored by s72531's avatar s72531 Committed by Lucendio
Browse files

test

parent 3cc2de4e
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,20 @@ describe( 'Model: Users', ()=>{
expect( userRecord ).toEqual( expect.objectContaining( userInfo ) );
});
test( 'deleting a user', async ()=>{
const userData = {
name: 'myname',
email: 'myname@example.com',
password: 'mypassword'
};
const DelOp = await Users.remove({ email: userData.email })
const userRecord = await Users.findOne({ email: userData.email });
expect( userRecord ).toBeNull();
});
afterAll( async ()=>{
const dbClient = await dbClientInstance_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment