mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 17:33:23 +00:00
[Framework] Include Promise polyfill in tests
Provide Promise polyfill in test runner. This allows tests of objects which use Promise directly to be run in environments which don't yet implement Promise (including command line test environment.) Completing test suite for framework layer, WTD-518.
This commit is contained in:
parent
2e144ca003
commit
6dea66558f
@ -4,12 +4,16 @@
|
||||
<link rel="stylesheet"
|
||||
type="text/css"
|
||||
href="platform/framework/test/lib/css/jasmine.css">
|
||||
<script type="text/javascript"
|
||||
src="platform/framework/lib/es6-promise-2.0.0.min.js">
|
||||
</script>
|
||||
<script type="text/javascript"
|
||||
src="platform/framework/lib/require.js">
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
window.Promise = window.Promise || ES6Promise.Promise;
|
||||
require(
|
||||
{
|
||||
paths: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user