summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLouis <6653109+artonge@users.noreply.github.com>2022-01-18 16:42:08 +0100
committerGitHub <noreply@github.com>2022-01-18 16:42:08 +0100
commit3d8d79713706dae0832af2db20fb78b2784724e6 (patch)
tree3e6c038e262e36e6441883eccd4dc4fbf1059de3 /core
parentd6716ccb212ef6e15ac59726ffee82ea22d819a4 (diff)
parentbca3ef60a3abb23951d7cc08f3841ad22b8d6dd0 (diff)
downloadnextcloud-server-3d8d79713706dae0832af2db20fb78b2784724e6.tar.gz
nextcloud-server-3d8d79713706dae0832af2db20fb78b2784724e6.zip
Merge pull request #30718 from nextcloud/tests/use_npm7_for_autotest-js
Support npm 7 when running autotest-js.sh
Diffstat (limited to 'core')
-rw-r--r--core/js/tests/specs/jquery.contactsmenuSpec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/js/tests/specs/jquery.contactsmenuSpec.js b/core/js/tests/specs/jquery.contactsmenuSpec.js
index d0bd9c8dde4..fb2514eb0de 100644
--- a/core/js/tests/specs/jquery.contactsmenuSpec.js
+++ b/core/js/tests/specs/jquery.contactsmenuSpec.js
@@ -124,7 +124,7 @@ describe('jquery.contactsMenu tests', function() {
$selector1.on('load', function() {
// FIXME: don't compare HTML one to one but check specific text in the output
- expect($appendTo.html().replace(/[\r\n\t]?(\ \ +)?/g, '')).toEqual('<div class="menu popovermenu menu-left contactsmenu-popover loaded"><ul><li class="hidden"><a><span class="icon-loading-small"></span></a></li><li><a href="mailto:bar%40baz.wtf"><img src="foo.svg"><span>bar@baz.wtf</span></a></li></ul></div>');
+ expect($appendTo.html().replace(/[\r\n\t]?(\ \ +)?/g, '')).toEqual('<div class="menu popovermenu menu-left contactsmenu-popover loaded" style="display: block;"><ul><li class="hidden"><a><span class="icon-loading-small"></span></a></li><li><a href="mailto:bar%40baz.wtf"><img src="foo.svg"><span>bar@baz.wtf</span></a></li></ul></div>');
done();
});
@@ -156,7 +156,7 @@ describe('jquery.contactsMenu tests', function() {
$selector1.on('load', function() {
// FIXME: don't compare HTML one to one but check specific text in the output
- expect($appendTo.html().replace(/[\r\n\t]?(\ \ +)?/g, '')).toEqual('<div class="menu popovermenu menu-left contactsmenu-popover loaded"><ul><li class="hidden"><a><span class="icon-loading-small"></span></a></li><li><a href="mailto:bar%40baz.wtf"><img src="foo.svg"><span>bar@baz.wtf</span></a></li><li><a href="http://localhost/index.php/apps/contacts"><img src="details.svg"><span>Details</span></a></li></ul></div>');
+ expect($appendTo.html().replace(/[\r\n\t]?(\ \ +)?/g, '')).toEqual('<div class="menu popovermenu menu-left contactsmenu-popover loaded" style="display: block;"><ul><li class="hidden"><a><span class="icon-loading-small"></span></a></li><li><a href="mailto:bar%40baz.wtf"><img src="foo.svg"><span>bar@baz.wtf</span></a></li><li><a href="http://localhost/index.php/apps/contacts"><img src="details.svg"><span>Details</span></a></li></ul></div>');
done();
});
@@ -181,7 +181,7 @@ describe('jquery.contactsMenu tests', function() {
$selector1.on('load', function() {
// FIXME: don't compare HTML one to one but check specific text in the output
- expect($appendTo.html().replace(/[\r\n\t]?(\ \ +)?/g, '')).toEqual('<div class="menu popovermenu menu-left contactsmenu-popover loaded"><ul><li class="hidden"><a><span class="icon-loading-small"></span></a></li><li><a href="#"><span>No action available</span></a></li></ul></div>');
+ expect($appendTo.html().replace(/[\r\n\t]?(\ \ +)?/g, '')).toEqual('<div class="menu popovermenu menu-left contactsmenu-popover loaded" style="display: block;"><ul><li class="hidden"><a><span class="icon-loading-small"></span></a></li><li><a href="#"><span>No action available</span></a></li></ul></div>');
done();
});
@@ -201,7 +201,7 @@ describe('jquery.contactsMenu tests', function() {
$selector1.on('loaderror', function() {
// FIXME: don't compare HTML one to one but check specific text in the output
- expect($appendTo.html().replace(/[\r\n\t]?(\ \ +)?/g, '')).toEqual('<div class="menu popovermenu menu-left contactsmenu-popover loaded"><ul><li class="hidden"><a><span class="icon-loading-small"></span></a></li><li><a href="#"><span>Error fetching contact actions</span></a></li></ul></div>');
+ expect($appendTo.html().replace(/[\r\n\t]?(\ \ +)?/g, '')).toEqual('<div class="menu popovermenu menu-left contactsmenu-popover loaded" style="display: block;"><ul><li class="hidden"><a><span class="icon-loading-small"></span></a></li><li><a href="#"><span>Error fetching contact actions</span></a></li></ul></div>');
done();
});
@@ -221,7 +221,7 @@ describe('jquery.contactsMenu tests', function() {
$selector1.on('loaderror', function() {
// FIXME: don't compare HTML one to one but check specific text in the output
- expect($appendTo.html().replace(/[\r\n\t]?(\ \ +)?/g, '')).toEqual('<div class="menu popovermenu menu-left contactsmenu-popover loaded"><ul><li class="hidden"><a><span class="icon-loading-small"></span></a></li><li><a href="#"><span>No action available</span></a></li></ul></div>');
+ expect($appendTo.html().replace(/[\r\n\t]?(\ \ +)?/g, '')).toEqual('<div class="menu popovermenu menu-left contactsmenu-popover loaded" style="display: block;"><ul><li class="hidden"><a><span class="icon-loading-small"></span></a></li><li><a href="#"><span>No action available</span></a></li></ul></div>');
done();
});