* Fix Typos

* Fix More Typos
This commit is contained in:
Yo
2019-12-23 22:22:55 +05:30
committed by Matteo Pagliazzi
parent 7d2c5ed339
commit 04a9c97393
39 changed files with 47 additions and 47 deletions

View File

@@ -251,7 +251,7 @@ describe('POST /challenges', () => {
expect(groupLeader.balance).to.eql(oldUserBalance);
});
it('sets all properites of the challenge as passed', async () => {
it('sets all properties of the challenge as passed', async () => {
const name = 'Test Challenge';
const shortName = 'TC Label';
const description = 'Test Description';

View File

@@ -177,7 +177,7 @@ describe('GET /groups/:id', () => {
});
});
it('removes non-existant guild from user\'s guild list', async () => {
it('removes non-existent guild from user\'s guild list', async () => {
const guildId = generateUUID();
await user.update({
@@ -197,7 +197,7 @@ describe('GET /groups/:id', () => {
expect(user.guilds).to.not.include(guildId);
});
it('removes non-existant party from user\'s party object', async () => {
it('removes non-existent party from user\'s party object', async () => {
const partyId = generateUUID();
await user.update({

View File

@@ -210,7 +210,7 @@ describe('POST /groups/:groupId/leave', () => {
expect(userWithoutInvitation.invitations.guilds).to.not.be.empty;
});
it('deletes non existant guild from user when user tries to leave', async () => {
it('deletes non existent guild from user when user tries to leave', async () => {
const nonExistentGuildId = generateUUID();
const userWithNonExistentGuild = await generateUser({ guilds: [nonExistentGuildId] });
expect(userWithNonExistentGuild.guilds).to.contain(nonExistentGuildId);
@@ -258,7 +258,7 @@ describe('POST /groups/:groupId/leave', () => {
});
});
it('deletes non existant party from user when user tries to leave', async () => {
it('deletes non existent party from user when user tries to leave', async () => {
const nonExistentPartyId = generateUUID();
const userWithNonExistentParty = await generateUser({ 'party._id': nonExistentPartyId });
expect(userWithNonExistentParty.party._id).to.eql(nonExistentPartyId);

View File

@@ -29,7 +29,7 @@ describe('payments - amazon - #checkout', () => {
amzLib.checkout.restore();
});
it('makes a purcahse with amazon checkout', async () => {
it('makes a purchase with amazon checkout', async () => {
user = await generateUser({
'profile.name': 'sender',
'purchased.plan.customerId': 'customer-id',

View File

@@ -120,7 +120,7 @@ describe('DELETE /tasks/:id', () => {
});
context('task cannot be deleted', () => {
it('cannot delete a non-existant task', async () => {
it('cannot delete a non-existent task', async () => {
await expect(user.del('/tasks/550e8400-e29b-41d4-a716-446655440000')).to.eventually.be.rejected.and.eql({
code: 404,
error: 'NotFound',

View File

@@ -39,7 +39,7 @@ describe('GET /tasks/:id', () => {
});
context('task cannot be accessed', () => {
it('cannot get a non-existant task', async () => {
it('cannot get a non-existent task', async () => {
const dummyId = generateUUID();
await expect(user.get(`/tasks/${dummyId}`)).to.eventually.be.rejected.and.eql({

View File

@@ -27,7 +27,7 @@ describe('DELETE /tasks/:id', () => {
});
});
it('cannot delete a non-existant task', async () => {
it('cannot delete a non-existent task', async () => {
await expect(user.del(`/tasks/${generateUUID()}`)).to.eventually.be.rejected.and.eql({
code: 404,
error: 'NotFound',

View File

@@ -16,7 +16,7 @@ describe('PUT /user/auth/update-email', () => {
const newEmail = 'SOmE-nEw-emAIl_2@example.net';
const oldPassword = 'password'; // from habitrpg/test/helpers/api-integration/v3/object-generators.js
context('Local Authenticaion User', async () => {
context('Local Authentication User', async () => {
let user;
beforeEach(async () => {