mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
tests: Correct phrasing of tests
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
|||||||
|
|
||||||
describe('Collection Manipulators', () => {
|
describe('Collection Manipulators', () => {
|
||||||
describe('removeFromArray', () => {
|
describe('removeFromArray', () => {
|
||||||
it('removes item from specified array on document', () => {
|
it('removes element from array', () => {
|
||||||
let array = ['a', 'b', 'c', 'd'];
|
let array = ['a', 'b', 'c', 'd'];
|
||||||
|
|
||||||
removeFromArray(array, 'c');
|
removeFromArray(array, 'c');
|
||||||
@@ -69,7 +69,7 @@ describe('Collection Manipulators', () => {
|
|||||||
expect(result).to.eql(false);
|
expect(result).to.eql(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('removal of element persists when mongoose document is saved', async () => {
|
it('persists removal of element when mongoose document is saved', async () => {
|
||||||
let schema = new mongoose.Schema({
|
let schema = new mongoose.Schema({
|
||||||
array: Array,
|
array: Array,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user