Fixed tests

This commit is contained in:
André Setti
2019-02-09 01:37:58 -02:00
parent ab8db72bd3
commit d687b0c047

View File

@@ -53,7 +53,7 @@ class CreateMetaTemplateTagTest(TestCase):
'<script type="text/javascript">', '<script type="text/javascript">',
"if ('serviceWorker' in navigator) {", "if ('serviceWorker' in navigator) {",
"navigator.serviceWorker.register('/serviceworker.js', {", "navigator.serviceWorker.register('/serviceworker.js', {",
"scope: '.'", "scope: '/'",
"}).then(function (registration) {", "}).then(function (registration) {",
"console.log('django-pwa: ServiceWorker registration successful with scope: ', registration.scope);", "console.log('django-pwa: ServiceWorker registration successful with scope: ', registration.scope);",
"}, function (err) {", "}, function (err) {",