Skip to content

Commit d09a358

Browse files
committed
Update DomainController.test.ts
1 parent e414e98 commit d09a358

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

tests/DomainController.test.ts

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
import { expect, test } from "vitest";
2-
import { dynamicDomain, fixedDomain } from "../workbench/resources/js/actions/App/Http/Controllers/DomainController";
2+
import {
3+
defaultParametersDomain,
4+
fixedDomain,
5+
} from "../workbench/resources/js/actions/App/Http/Controllers/DomainController";
36

4-
test('can generate fixed domain urls', () => {
5-
expect(fixedDomain.url({ param: 'foo' })).toBe('//example.test/fixed-domain/foo')
6-
})
7+
test("can generate fixed domain urls", () => {
8+
expect(fixedDomain.url({ param: "foo" })).toBe(
9+
"//example.test/fixed-domain/foo",
10+
);
11+
});
712

8-
test('can generate dynamic domain urls', () => {
9-
expect(dynamicDomain.url({
10-
domain: 'tim.macdonald',
11-
param: 'foo',
12-
})).toBe('//tim.macdonald.au/dynamic-domain/foo')
13-
})
13+
test("can generate dynamic domain urls", () => {
14+
expect(
15+
defaultParametersDomain.url({
16+
defaultDomain: "tim.macdonald",
17+
param: "foo",
18+
}),
19+
).toBe("//tim.macdonald.au/default-parameters-domain/foo");
20+
});

0 commit comments

Comments
 (0)