Skip to content

Commit

Permalink
test: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Apr 15, 2021
1 parent 6638848 commit b85d7de
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/server/open-option.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ describe('"open" option', () => {
wait: false,
});
expect(loggerWarnSpy).toHaveBeenCalledWith(
'Unable to open "http://localhost:8117/" page. If you are running in a headless environment, please do not use the "--open" flag or the "open" option.'
'Unable to open "http://localhost:8117/" page. If you are running in a headless environment, please do not use the "open" option or related flags like "--open", "--open-target", and "--open-app".'
);

loggerWarnSpy.mockRestore();
Expand Down Expand Up @@ -705,7 +705,7 @@ describe('"open" option', () => {
wait: false,
});
expect(loggerWarnSpy).toHaveBeenCalledWith(
'Unable to open "http://localhost:8117/index.html" page. If you are running in a headless environment, please do not use the "--open" flag or the "open" option.'
'Unable to open "http://localhost:8117/index.html" page. If you are running in a headless environment, please do not use the "open" option or related flags like "--open", "--open-target", and "--open-app".'
);

loggerWarnSpy.mockRestore();
Expand Down Expand Up @@ -738,7 +738,7 @@ describe('"open" option', () => {
wait: false,
});
expect(loggerWarnSpy).toHaveBeenCalledWith(
'Unable to open "http://localhost:8117/index.html" page in "google-chrome" app. If you are running in a headless environment, please do not use the "--open" flag or the "open" option.'
'Unable to open "http://localhost:8117/index.html" page in "google-chrome" app. If you are running in a headless environment, please do not use the "open" option or related flags like "--open", "--open-target", and "--open-app".'
);

loggerWarnSpy.mockRestore();
Expand Down Expand Up @@ -771,7 +771,7 @@ describe('"open" option', () => {
wait: false,
});
expect(loggerWarnSpy).toHaveBeenCalledWith(
'Unable to open "http://localhost:8117/index.html" page in "google-chrome" app with "--incognito --new-window" arguments. If you are running in a headless environment, please do not use the "--open" flag or the "open" option.'
'Unable to open "http://localhost:8117/index.html" page in "google-chrome" app with "--incognito --new-window" arguments. If you are running in a headless environment, please do not use the "open" option or related flags like "--open", "--open-target", and "--open-app".'
);

loggerWarnSpy.mockRestore();
Expand Down Expand Up @@ -817,11 +817,11 @@ describe('"open" option', () => {
);
expect(loggerWarnSpy).toHaveBeenNthCalledWith(
1,
'Unable to open "http://localhost:8117/first.html" page in "google-chrome" app with "--incognito --new-window" arguments. If you are running in a headless environment, please do not use the "--open" flag or the "open" option.'
'Unable to open "http://localhost:8117/first.html" page in "google-chrome" app with "--incognito --new-window" arguments. If you are running in a headless environment, please do not use the "open" option or related flags like "--open", "--open-target", and "--open-app".'
);
expect(loggerWarnSpy).toHaveBeenNthCalledWith(
2,
'Unable to open "http://localhost:8117/second.html" page in "google-chrome" app with "--incognito --new-window" arguments. If you are running in a headless environment, please do not use the "--open" flag or the "open" option.'
'Unable to open "http://localhost:8117/second.html" page in "google-chrome" app with "--incognito --new-window" arguments. If you are running in a headless environment, please do not use the "open" option or related flags like "--open", "--open-target", and "--open-app".'
);

loggerWarnSpy.mockRestore();
Expand Down

0 comments on commit b85d7de

Please sign in to comment.