diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-04-26 14:12:34 -0700 |
|---|---|---|
| committer | Carlton Gibson <carlton@noumenal.es> | 2020-04-29 10:22:41 +0200 |
| commit | 7271c8def4029d53c3249c3eb341c7180f527747 (patch) | |
| tree | 41e463559de6ab3a1ef092bbc0c9cbf9a97fe5e7 /js_tests/admin/jsi18n-mocks.test.js | |
| parent | 5d37cc703b2d3f100ca5c2c73fd456739cd80dd9 (diff) | |
Refs #31493 -- Changed IIFE to ES6 blocks.
Diffstat (limited to 'js_tests/admin/jsi18n-mocks.test.js')
| -rw-r--r-- | js_tests/admin/jsi18n-mocks.test.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js_tests/admin/jsi18n-mocks.test.js b/js_tests/admin/jsi18n-mocks.test.js index 13d5b0e33c..6609c28e43 100644 --- a/js_tests/admin/jsi18n-mocks.test.js +++ b/js_tests/admin/jsi18n-mocks.test.js @@ -1,5 +1,6 @@ -(function(globals) { - 'use strict'; +'use strict'; +{ + const globals = this; const django = globals.django; django.pluralidx = function(count) { return (count === 1) ? 0 : 1; }; @@ -86,5 +87,4 @@ globals.npgettext = django.npgettext; globals.interpolate = django.interpolate; globals.get_format = django.get_format; - -}(this)); +}; |
