Skip to content

Commit

Permalink
revert test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sszafGCA committed Oct 18, 2023
1 parent 0b32b96 commit 9c30f6e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const { customErrorMessages } = util;

const mockData = {
keyword: customUtils.KEYWORDS.E_MAIL_ADDRESS,
email: 'testmail@example.com',
email: 'testmail@schul-cloud.org123',
};

const createEntry = async () => {
Expand Down
4 changes: 2 additions & 2 deletions test/services/activation/utils/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const { customErrorMessages } = util;

const mockData = {
keyword: customUtils.KEYWORDS.E_MAIL_ADDRESS,
email: 'testmail@example.com',
email2: 'testmail2@example.com',
email: 'testmail@schul-cloud.org',
email2: 'testmail2@schul-cloud.org',
};

const createEntry = async () => {
Expand Down
4 changes: 2 additions & 2 deletions test/services/passwordRecovery/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('passwordRecovery service', () => {
let server;
let savedUser;
let savedAccount;
const recoveryUsername = 'recoveryuser@example.com';
const recoveryUsername = 'recoveryuser@schul-cloud.org';

const newAccount = {
username: recoveryUsername,
Expand Down Expand Up @@ -42,7 +42,7 @@ describe('passwordRecovery service', () => {
it.skip('should work for existing email addresses', async () => {
// TODO throws NOT_FOUND
const res = await passwordRecoveryService.create({
username: 'schueler@example.com',
username: 'schueler@schul-cloud.org',
});
assert.ok(res);
});
Expand Down
6 changes: 2 additions & 4 deletions test/services/sync/strategies/TSP/TSP.integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ describe('TSP API integration tests', () => {
});
});

// TODO due to implementation of BC-4895 domain need to be changed in later ticket (result of refinement);S

/* describe('#createUserAndAccount', () => {
describe('#createUserAndAccount', () => {
it('should create an activated user and account based on the given details', async () => {
const school = await testObjects.createTestSchool();
const userDetails = {
Expand All @@ -86,5 +84,5 @@ describe('TSP API integration tests', () => {
expect(createdAccount.username).to.equal('tsp/2345');
expect(createdAccount.activated).to.equal(true);
});
}); */
});
});
2 changes: 1 addition & 1 deletion test/services/user/unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('registrationPin Service', () => {
});

let pin = null;
const email = 'test.adresse@example.com';
const email = 'test.adresse@schul-cloud.org';
it('registered the registrationPin Service', () => {
assert.ok(registrationPinService);
});
Expand Down
4 changes: 2 additions & 2 deletions test/utils/disposableEmail.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('[utils] disposableEmail', () => {
});

it('check false', () => {
expect(isDisposableEmail('user@example.com')).is.false;
expect(isDisposableEmail('user@schul-cloud.org')).is.false;
});

it('check true (exact match)', () => {
Expand Down Expand Up @@ -44,7 +44,7 @@ describe('[utils] disposableEmail', () => {

it('empty', () => {
Configuration.set('ADDITIONAL_BLACKLISTED_EMAIL_DOMAINS', '');
expect(isDisposableEmail('user@example.com')).is.false;
expect(isDisposableEmail('user@schul-cloud.org')).is.false;
});

it('block', () => {
Expand Down

0 comments on commit 9c30f6e

Please sign in to comment.