Skip to content

Commit

Permalink
chore(network): Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonVreling committed Sep 25, 2024
1 parent f0290da commit 5f65af9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion models/MailComponent.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { Sequelize, sequelize } = require('../lib/sequelize');

const MailComponent = sequelize.define('maiLComponent', {
const MailComponent = sequelize.define('mailComponent', {
agora_id: {
allowNull: false,
primaryKey: true,
Expand Down
3 changes: 1 addition & 2 deletions test/api/mail-component.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const { startServer, stopServer } = require('../../lib/server');
const { request } = require('../scripts/helpers');
const mock = require('../scripts/mock');
const generator = require('../scripts/generator');
const { MailComponent } = require('../../models');

describe('MailComponent', () => {
beforeAll(async () => {
Expand Down Expand Up @@ -54,7 +53,7 @@ describe('MailComponent', () => {
test('should only list MailComponents of the selected Agora', async () => {
await generator.createMailComponent({ agora_id: 1, mail_component: 'introduction' });
await generator.createMailComponent({ agora_id: 1, mail_component: 'communication' });
await generator.createMailComponent({ agora_id: 2, mail_component: 'board election'});
await generator.createMailComponent({ agora_id: 2, mail_component: 'board election' });

const res = await request({
uri: '/mailComponent/1',
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ exports.generateMailComponent = (options = {}) => {
};

exports.createMailComponent = (options = {}) => {
return MailComponent.create(exports.generateNetcom(options));
return MailComponent.create(exports.generateMailComponent(options));
};

exports.clearAll = async () => {
Expand Down

0 comments on commit 5f65af9

Please sign in to comment.