summaryrefslogtreecommitdiffstats
path: root/debian/missing-sources/epoch/tests/unit/time
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:55:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:55:53 +0000
commit129b974b59c74140570847bb4a2774d41d1e5fae (patch)
treef2dc68e7186b8157e33aebbc2526e016912ded82 /debian/missing-sources/epoch/tests/unit/time
parentAdding upstream version 3.2.1. (diff)
downloadknot-resolver-debian/3.2.1-3.tar.xz
knot-resolver-debian/3.2.1-3.zip
Adding debian version 3.2.1-3.debian/3.2.1-3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/missing-sources/epoch/tests/unit/time')
-rw-r--r--debian/missing-sources/epoch/tests/unit/time/line.coffee15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/missing-sources/epoch/tests/unit/time/line.coffee b/debian/missing-sources/epoch/tests/unit/time/line.coffee
new file mode 100644
index 0000000..fa6c205
--- /dev/null
+++ b/debian/missing-sources/epoch/tests/unit/time/line.coffee
@@ -0,0 +1,15 @@
+sinon = require 'sinon'
+
+describe 'Epoch.Time.Line', ->
+ chart = null
+ beforeEach ->
+ chart = new Epoch.Time.Line
+ data: [{ range: 'foo', values: [{time: 0, y: 10}, {time: 1, y: 30}] }]
+
+ describe 'draw', ->
+ beforeEach -> sinon.spy chart, 'y'
+ afterEach -> chart.y.restore()
+
+ it 'should provide the layer\'s range to the y scale', ->
+ chart.draw()
+ assert.ok chart.y.calledWith('foo')