mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-28 03:49:37 +00:00
18 lines
708 B
TypeScript
18 lines
708 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__, __assert_msg__ }) => {
|
||
|
assert.equal(buildMailToUrl(__args__), __expected__, __assert_msg__);
|
||
|
});
|
||
|
});
|
||
|
});
|