summaryrefslogtreecommitdiffstats
path: root/debian/missing-sources/epoch/tests/unit/time/line.coffee
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 20:37:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 20:37:51 +0000
commit56ccd5615d426b5e18d1e6b9f6160d6bccac94fa (patch)
treeb31187a54880ac0bbc2fab7bdd165178bb24fa01 /debian/missing-sources/epoch/tests/unit/time/line.coffee
parentAdding upstream version 5.7.1. (diff)
downloadknot-resolver-56ccd5615d426b5e18d1e6b9f6160d6bccac94fa.tar.xz
knot-resolver-56ccd5615d426b5e18d1e6b9f6160d6bccac94fa.zip
Adding debian version 5.7.1-1.debian/5.7.1-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/missing-sources/epoch/tests/unit/time/line.coffee')
-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')