Skip to content

Commit

Permalink
Fix request stub for regionMapping.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
na9da committed Aug 3, 2023
1 parent e7f7be4 commit b0835b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/ModelMixins/TableMixinSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ describe("TableMixin", function () {

jasmine.Ajax.install();
jasmine.Ajax.stubRequest(
"build/TerriaJS/data/regionMapping.json"
// Using a regex because esbuild will add a unique id to the file name
/regionMapping.*.json$/
).andReturn({ responseText: regionMapping });

jasmine.Ajax.stubRequest(
Expand Down

0 comments on commit b0835b2

Please sign in to comment.