File tree Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change 1
1
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" ;
3
6
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
+ } ) ;
7
12
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
+ } ) ;
You can’t perform that action at this time.
0 commit comments