Skip to content

Commit

Permalink
Fixed mapping tests
Browse files Browse the repository at this point in the history
  • Loading branch information
evg4b committed May 8, 2023
1 parent 5553ebc commit 18ea089
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/configuration/static_mapping_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@ statics:
},
},
{
name: "decode object mappings with default",
name: "decode object mappings with index",
config: `
statics:
/path: { dir: /static-dir, default: index.html }
/another-path: { dir: /another-static-dir, default: default.html }
/path: { dir: /static-dir, index: index.html }
/another-path: { dir: /another-static-dir, index: default.html }
`,
expected: configuration.StaticDirMappings{
{Path: "/path", Dir: "/static-dir", Index: "index.html"},
{Path: "/another-path", Dir: "/another-static-dir", Index: "default.html"},
},
},
{
name: "decode mixed mappings with default",
name: "decode mixed mappings with index",
config: `
statics:
/path: { dir: /static-dir, default: index.html }
/path: { dir: /static-dir, index: index.html }
/another-path: /another-static-dir
`,
expected: configuration.StaticDirMappings{
Expand Down

0 comments on commit 18ea089

Please sign in to comment.