This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port changes from CLI 3 to CLI 2 (#2737)
### WHY are these changes introduced? Backports changes from CLI 3 to CLI 2, until CLI 2 is sunset. ### WHAT is this pull request doing? Back-port from * Shopify/cli#1568
- Loading branch information
Julien Poitrin
authored
Mar 13, 2023
1 parent
b5d3d2a
commit 9df60a0
Showing
3 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,18 @@ def test_calls_reload_script_injector | |
assert_equal(correct_output, request.get("/").body) | ||
end | ||
|
||
def test_does_not_call_reload_script_injector_for_web_pixels_manager_sandbox | ||
correct_output = "<html></html>" | ||
app = lambda do |_env| | ||
[200, { "content-type" => "text/html" }, [correct_output]] | ||
end | ||
stack = HotReload.new(@ctx, app, watcher: @watcher, mode: @mode) | ||
request = Rack::MockRequest.new(stack) | ||
|
||
assert_equal(correct_output, request.get("/[email protected]/sandbox/").body) | ||
assert_equal(correct_output, request.get("/[email protected]@6b2037/sandbox/").body) | ||
end | ||
|
||
private | ||
|
||
def app | ||
|