mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-25 02:19:58 +00:00
18 lines
682 B
TypeScript
18 lines
682 B
TypeScript
import { buildMailToUrl } from 'wherehows-web/utils/helpers/email';
|
|
import { module, test } from 'qunit';
|
|
import { emailMailToAsserts } from 'wherehows-web/tests/helpers/validators/email/email-test-fixture';
|
|
|
|
module('Unit | Utility | helpers/email', function(): void {
|
|
test('buildMailToUrl exists', function(assert) {
|
|
assert.equal(typeof buildMailToUrl, 'function', 'it is of function type');
|
|
});
|
|
|
|
test('buildMailToUrl generates expected url values', function(assert): void {
|
|
assert.expect(emailMailToAsserts.length);
|
|
|
|
emailMailToAsserts.forEach(({ expected, args, assertMsg }) => {
|
|
assert.equal(buildMailToUrl(args), expected, assertMsg);
|
|
});
|
|
});
|
|
});
|