File tree Expand file tree Collapse file tree 2 files changed +23
-20
lines changed
test/unit/migrations/settings Expand file tree Collapse file tree 2 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 11import { module , test } from "qunit" ;
22import migrate from "../../../../migrations/settings/0001-rename-settings" ;
33
4- module ( "Unit | Migrations | Settings | 0001-rename-settings" , function ( ) {
5- test ( "migrate" , function ( assert ) {
6- const settings = new Map (
7- Object . entries ( {
8- Custom_header_links : "some,links" ,
9- } )
10- ) ;
4+ module (
5+ "Custom Header Links | Unit | Migrations | Settings | 0001-rename-settings" ,
6+ function ( ) {
7+ test ( "migrate" , function ( assert ) {
8+ const settings = new Map (
9+ Object . entries ( {
10+ Custom_header_links : "some,links" ,
11+ } )
12+ ) ;
1113
12- const result = migrate ( settings ) ;
14+ const result = migrate ( settings ) ;
1315
14- assert . deepEqual (
15- Array . from ( result ) ,
16- Array . from (
17- new Map (
18- Object . entries ( {
19- custom_header_links : "some,links" ,
20- } )
16+ assert . deepEqual (
17+ Array . from ( result ) ,
18+ Array . from (
19+ new Map (
20+ Object . entries ( {
21+ custom_header_links : "some,links" ,
22+ } )
23+ )
2124 )
22- )
23- ) ;
24- } ) ;
25- } ) ;
25+ ) ;
26+ } ) ;
27+ }
28+ ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { module, test } from "qunit";
22import migrate from "../../../../migrations/settings/0002-migrate-custom-header-links" ;
33
44module (
5- "Unit | Migrations | Settings | 0002-migrate-custom-header-links" ,
5+ "Custom Header Links | Migrations | Settings | 0002-migrate-custom-header-links" ,
66 function ( ) {
77 test ( "migrate when value of setting is already an array" , function ( assert ) {
88 const settings = new Map (
You can’t perform that action at this time.
0 commit comments