@haibun/email-testing 1.10.14 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,22 +8,28 @@ const util_1 = require("@haibun/core/build/lib/util");
|
|
|
8
8
|
const run_1 = require("@haibun/core/build/lib/run");
|
|
9
9
|
const email_testing_stepper_1 = __importDefault(require("./email-testing-stepper"));
|
|
10
10
|
const domain = 'google.com';
|
|
11
|
+
const protoOptions = {
|
|
12
|
+
...run_1.DEF_PROTO_OPTIONS,
|
|
13
|
+
extraOptions: {
|
|
14
|
+
[(0, util_1.getStepperOptionName)(email_testing_stepper_1.default, 'EMAIL_SERVER')]: domain,
|
|
15
|
+
}
|
|
16
|
+
};
|
|
11
17
|
describe('MTA', () => {
|
|
12
18
|
it('MTA STS', async () => {
|
|
13
|
-
const
|
|
14
|
-
const { ok } = await (0, lib_1.testWithDefaults)(
|
|
19
|
+
const features = (0, lib_1.asFeatures)([{ path: '/features/record.feature', content: `domain's mail server agent strict transfer security is valid` }]);
|
|
20
|
+
const { ok } = await (0, lib_1.testWithDefaults)(features, [email_testing_stepper_1.default], protoOptions);
|
|
15
21
|
expect(ok).toBe(true);
|
|
16
22
|
});
|
|
17
23
|
});
|
|
18
24
|
describe('DMARC', () => {
|
|
19
25
|
it('Has a valid dmarc record', async () => {
|
|
20
|
-
const
|
|
21
|
-
const { ok } = await (0, lib_1.testWithDefaults)(
|
|
26
|
+
const features = (0, lib_1.asFeatures)([{ path: '/features/record.feature', content: `DMARC record exists` }]);
|
|
27
|
+
const { ok } = await (0, lib_1.testWithDefaults)(features, [email_testing_stepper_1.default], protoOptions);
|
|
22
28
|
expect(ok).toBe(true);
|
|
23
29
|
});
|
|
24
30
|
it('DMARC rua is defined', async () => {
|
|
25
|
-
const
|
|
26
|
-
const { ok } = await (0, lib_1.testWithDefaults)(
|
|
31
|
+
const features = (0, lib_1.asFeatures)([{ path: '/features/record.feature', content: `DMARC field rua is defined` }]);
|
|
32
|
+
const { ok } = await (0, lib_1.testWithDefaults)(features, [email_testing_stepper_1.default], protoOptions);
|
|
27
33
|
expect(ok).toBe(true);
|
|
28
34
|
});
|
|
29
35
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haibun/email-testing",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/web-http.js",
|
|
6
6
|
"files": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"author": "",
|
|
29
29
|
"license": "ISC",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@haibun/core": "
|
|
31
|
+
"@haibun/core": "1.11.0",
|
|
32
32
|
"dmarc-solution": "^1.2.5",
|
|
33
33
|
"mailauth": "^4.0.1"
|
|
34
34
|
},
|