Skip to content

Commit

Permalink
chore: update jest tests and strings for removal of google basemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Oct 23, 2023
1 parent 25de9ba commit da4d8b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
10 changes: 2 additions & 8 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"POT-Creation-Date: 2023-09-28T08:43:20.062Z\n"
"PO-Revision-Date: 2023-09-28T08:43:20.062Z\n"
"POT-Creation-Date: 2023-10-23T12:55:26.288Z\n"
"PO-Revision-Date: 2023-10-23T12:55:26.288Z\n"

msgid "Untitled map, {{date}}"
msgstr "Untitled map, {{date}}"
Expand Down Expand Up @@ -895,12 +895,6 @@ msgstr "OSM Light"
msgid "OSM Detailed"
msgstr "OSM Detailed"

msgid "Google Streets"
msgstr "Google Streets"

msgid "Google Hybrid"
msgstr "Google Hybrid"

msgid "Bing Road"
msgstr "Bing Road"

Expand Down
2 changes: 1 addition & 1 deletion src/constants/basemaps.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import i18n from '@dhis2/d2-i18n'
import { TILE_LAYER, GOOGLE_LAYER, BING_LAYER } from '../constants/layers.js'
import { TILE_LAYER, BING_LAYER } from '../constants/layers.js'

export const FALLBACK_BASEMAP_ID = 'osmLight'

Expand Down
4 changes: 2 additions & 2 deletions src/util/__tests__/app.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('utils/app', () => {
externalMapLayers,
})

expect(cfg.basemaps).toHaveLength(11)
expect(cfg.basemaps).toHaveLength(9)
expect(cfg.nameProperty).toEqual('displayName')
expect(cfg.layerTypes).toHaveLength(13)
expect(cfg.currentUser.username).toEqual('admin')
Expand Down Expand Up @@ -142,7 +142,7 @@ describe('utils/app', () => {
externalMapLayers,
})

expect(cfg.basemaps).toHaveLength(7)
expect(cfg.basemaps).toHaveLength(5)
expect(cfg.nameProperty).toEqual('displayShortName')
expect(cfg.layerTypes).toHaveLength(13)
expect(cfg.currentUser).toMatchObject({
Expand Down

0 comments on commit da4d8b5

Please sign in to comment.