Update test harness
This commit is contained in:
Родитель
85d83f8219
Коммит
7eada1e6ee
|
@ -1,12 +1,13 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>MOCHA TESTS for ms-rest-js</title>
|
||||
<title>MOCHA TESTS for ms-rest-browserauth</title>
|
||||
<link href="node_modules/mocha/mocha.css" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="mocha"></div>
|
||||
|
||||
<script src="node_modules/ms-rest-js/msRestBundle.js"></script>
|
||||
<script src="node_modules/mocha/mocha.js"></script>
|
||||
<script>
|
||||
mocha.setup({ ui: 'bdd', timeout: 50000 });
|
||||
|
|
|
@ -149,8 +149,8 @@ export class AuthManager {
|
|||
isLoggedIn: true,
|
||||
creds,
|
||||
availableSubscriptions
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -2,5 +2,5 @@
|
|||
// Licensed under the MIT License. See LICENSE in the project root for license information.
|
||||
|
||||
describe("ms-rest-browserauth", function() {
|
||||
it("should work");
|
||||
it("no tests to run");
|
||||
});
|
||||
|
|
|
@ -2,5 +2,4 @@
|
|||
--timeout 50000
|
||||
--reporter list
|
||||
--colors
|
||||
test/node/**/*.ts
|
||||
test/shared/**/*.ts
|
||||
test/**/*.ts
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License. See LICENSE in the project root for license information.
|
||||
|
||||
import * as path from "path";
|
||||
import * as webpackMiddleware from "webpack-dev-middleware";
|
||||
import webpackMiddleware from "webpack-dev-middleware";
|
||||
import webpack = require("webpack");
|
||||
import express = require("express");
|
||||
import testconfig = require("../webpack.testconfig");
|
||||
|
@ -13,6 +16,8 @@ if (process.argv.indexOf("--no-webpack") === -1) {
|
|||
}));
|
||||
}
|
||||
|
||||
app.use(express.static(path.join(__dirname, "../")));
|
||||
|
||||
app.listen(port, function() {
|
||||
console.log(`ms-rest-browserauth testserver listening on port ${port}...`);
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче