Skip to content

Commit

Permalink
#1274 Migrated numeric utils tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oleh-maikovych committed Apr 25, 2019
1 parent 2fa34eb commit 7cfdd0f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
<script src="/resources/polymer/wct-browser-legacy/browser.js"></script>
<script type="module">
import '/app/tg-app.js';
</script>
</head>

<body>
Expand All @@ -26,6 +23,8 @@

<script type="module">

import '/app/tg-app.js';

suite('Test menu changes callback', function () {
let app;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
<title>tg-numeric-utils tests</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

<script src="/resources/polymer/webcomponentsjs/webcomponents-lite.js"></script>
<script src="/resources/polymer/web-component-tester/browser.js"></script>
<script src="/resources/polymer/test-fixture/test-fixture-mocha.js"></script>
<script src="/resources/polymer/iron-test-helpers/mock-interactions.js"></script>

<link rel="import" href="/resources/polymer/test-fixture/test-fixture.html">
<link rel="import" href="/resources/reflection/tg-numeric-utils.html">
<script src="/resources/polymer/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
<script src='/resources/polymer/web-animations-js/web-animations-next-lite.min.js'></script>
<script src="/resources/lodash/4.17.11/lodash.min.js"></script>
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
<script src="/resources/polymer/wct-browser-legacy/browser.js"></script>
</head>

<body>
<script>
<script type="module">

import { truncateInsignificantZeros, random } from '/resources/reflection/tg-numeric-utils.js';

suite('numeric utils', function() {

test('zeros truncation does not occur for empty string', function (done) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
<script src="/resources/postal/2.0.5/postal.min.js"></script>
<script src="/resources/filesaver/FileSaver.min.js"></script>
<script src="/resources/polymer/wct-browser-legacy/browser.js"></script>
<script type="module">
import '/app/tg-reflector.js';
</script>
</head>

<body>
<tg-reflector id="reflector"></tg-reflector>

<script>
<script type="module">

import '/app/tg-reflector.js';

suite('reflector\'s', function() {
let reflector;
const typeName1 = 'ua.com.fielden.platform.sample.domain.TgPersistentEntityWithProperties';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

WCT.loadSuites([
'app/test/tg-menu-list-changes-test.html',
'reflection/test/tg-reflector.html'
// 'reflection/test/tg-numeric-utils.html',
'reflection/test/tg-reflector.html',
'reflection/test/tg-numeric-utils.html'
// 'serialisation/test/tg-serialiser.html',
// 'egi/test/tg-egi-dynamic-column-dom-test.html',
// 'egi/test/tg-egi-dynamic-rendering-hints-test.html',
Expand Down

0 comments on commit 7cfdd0f

Please sign in to comment.