| Index: sdk/lib/_internal/pub/test/serve/web_socket/unserve_directory_arg_errors_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/serve/web_socket/serve_directory_arg_errors_test.dart b/sdk/lib/_internal/pub/test/serve/web_socket/unserve_directory_arg_errors_test.dart
|
| similarity index 92%
|
| copy from sdk/lib/_internal/pub/test/serve/web_socket/serve_directory_arg_errors_test.dart
|
| copy to sdk/lib/_internal/pub/test/serve/web_socket/unserve_directory_arg_errors_test.dart
|
| index d0ffd784a980de5926916fba07dba59f962a9c56..aaa3d9c2596c5dfa9c50984568eeff6c32f5ec6c 100644
|
| --- a/sdk/lib/_internal/pub/test/serve/web_socket/serve_directory_arg_errors_test.dart
|
| +++ b/sdk/lib/_internal/pub/test/serve/web_socket/unserve_directory_arg_errors_test.dart
|
| @@ -25,7 +25,7 @@ main() {
|
| integration("responds with an error if 'path' is missing", () {
|
| pubServe();
|
| expectWebSocketCall({
|
| - "command": "serveDirectory"
|
| + "command": "unserveDirectory"
|
| }, replyEquals: {
|
| "code": "BAD_ARGUMENT",
|
| "error": 'Missing "path" argument.'
|
| @@ -36,7 +36,7 @@ main() {
|
| integration("responds with an error if 'path' is not a string", () {
|
| pubServe();
|
| expectWebSocketCall({
|
| - "command": "serveDirectory",
|
| + "command": "unserveDirectory",
|
| "path": 123
|
| }, replyEquals: {
|
| "code": "BAD_ARGUMENT",
|
| @@ -48,7 +48,7 @@ main() {
|
| integration("responds with an error if 'path' is absolute", () {
|
| pubServe();
|
| expectWebSocketCall({
|
| - "command": "serveDirectory",
|
| + "command": "unserveDirectory",
|
| "path": "/absolute.txt"
|
| }, replyEquals: {
|
| "code": "BAD_ARGUMENT",
|
| @@ -60,7 +60,7 @@ main() {
|
| integration("responds with an error if 'path' reaches out", () {
|
| pubServe();
|
| expectWebSocketCall({
|
| - "command": "serveDirectory",
|
| + "command": "unserveDirectory",
|
| "path": "a/../../bad.txt"
|
| }, replyEquals: {
|
| "code": "BAD_ARGUMENT",
|
|
|