diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-04-14 18:12:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-04-14 18:12:10 +0000 |
commit | b5321aff06d6ea8d730d62aec2ffd8e9271c1ffc (patch) | |
tree | 36c41e35994786456154f9d3bf88c324763aeea4 /tests/web/easypiechart.chart.spec.js | |
parent | Adding upstream version 1.33.1. (diff) | |
download | netdata-b5321aff06d6ea8d730d62aec2ffd8e9271c1ffc.tar.xz netdata-b5321aff06d6ea8d730d62aec2ffd8e9271c1ffc.zip |
Adding upstream version 1.34.0.upstream/1.34.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/web/easypiechart.chart.spec.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/tests/web/easypiechart.chart.spec.js b/tests/web/easypiechart.chart.spec.js deleted file mode 100644 index 23bf33d69..000000000 --- a/tests/web/easypiechart.chart.spec.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; - - -// with xdescribe, this is skipped. -describe("creation of easy pie charts", function () { - - beforeAll(function () { - // karma stores the loaded files relative to "base/". - // This command is needed to load HTML fixtures - jasmine.getFixtures().fixturesPath = "base/tests/web/fixtures"; - }); - - it("should create new chart, but it's failure is expected for demonstration purpose", function () { - // arrange - // Theoretically we can load some html. What about jquery? could this work? - // https://stackoverflow.com/questions/5337481/spying-on-jquery-selectors-in-jasmine - loadFixtures("easypiechart.chart.fixture1.html"); - - // for easy pie chart, we can fake the data result: - var data = { - result: [5] - }; - // act - var result = NETDATA.easypiechartChartCreate(createState(), data); - // assert - expect(result).toBe(true); - }); - - function createState(min, max) { - // create a fake state with only needed properties. - return { - tmp: { - easyPieChartMin: min, - easyPieChartMax: max - } - }; - } - -}); |