blob: a3c8f0ce84b36f9f8089ef122b50b58c0a8a9734 [file] [log] [blame]
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS d.file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library pub_tests;
import '../../descriptor.dart' as d;
import '../../test_pub.dart';
import '../utils.dart';
main() {
initConfig();
integration("returns the old URL if the directory is already served", () {
d.dir(appPath, [
d.appPubspec(),
d.dir("web", [
d.file("index.html", "<body>")
])
]).create();
pubServe();
expectWebSocketCall({
"command": "serveDirectory",
"path": "web"
}, replyMatches: {
"url": getServerUrl("web")
});
endPubServe();
});
}