@d3fc/d3fc-random-data
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -6,2 +6,10 @@ # Change Log | ||
## 4.0.1 (2020-07-14) | ||
**Note:** Version bump only for package @d3fc/d3fc-random-data | ||
# 4.0.0 (2020-04-16) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@d3fc/d3fc-random-data", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Components for generating random data series based on stochastic processes", | ||
@@ -28,7 +28,6 @@ "license": "MIT", | ||
"bundle": "npx rollup -c ../../scripts/rollup.config.js", | ||
"test": " npx jasmine --config=../../scripts/jasmine.json", | ||
"start": "npm start --prefix ../d3fc -- --configPkg=d3fc-random-data" | ||
}, | ||
"dependencies": { | ||
"@d3fc/d3fc-rebind": "^6.0.0" | ||
"@d3fc/d3fc-rebind": "^6.0.1" | ||
}, | ||
@@ -42,3 +41,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "42460bbd9e769aa24b07ae8e6dc7037c63d3bea8" | ||
"gitHead": "3c6890b82dbb430bafd52420c0dd506861f16f5d" | ||
} |
@@ -8,8 +8,8 @@ import jsdom from 'jsdom'; | ||
virtualConsole: jsdom.createVirtualConsole().sendTo({ | ||
error: fail | ||
error: done | ||
}), | ||
scripts: [ | ||
require.resolve('d3/dist/d3.js'), | ||
'./node_modules/@d3fc/d3fc-rebind/build/d3fc-rebind.js', | ||
'./build/d3fc-random-data.js' | ||
require.resolve('../node_modules/@d3fc/d3fc-rebind/build/d3fc-rebind.js'), | ||
require.resolve('../build/d3fc-random-data.js') | ||
], | ||
@@ -16,0 +16,0 @@ done: (_, win) => { |
@@ -17,3 +17,3 @@ import { default as financial } from '../src/financial'; | ||
const result = generator(10); | ||
expect(result.length).toBe(10); | ||
expect(result).toHaveLength(10); | ||
}); | ||
@@ -40,3 +40,3 @@ | ||
const result = stream.until(datum => datum.date > new Date(2015, 0, 10)); | ||
expect(result.length).toBe(5); | ||
expect(result).toHaveLength(5); | ||
}); | ||
@@ -123,3 +123,3 @@ | ||
const data = stream.take(10); | ||
expect(data.length).toBe(10); | ||
expect(data).toHaveLength(10); | ||
}); | ||
@@ -130,5 +130,5 @@ | ||
const data0 = stream.take(0); | ||
expect(data0.length).toBe(0); | ||
expect(data0).toHaveLength(0); | ||
const data1 = stream.take(-1); | ||
expect(data1.length).toBe(0); | ||
expect(data1).toHaveLength(0); | ||
}); | ||
@@ -139,3 +139,3 @@ | ||
const data = stream.take(); | ||
expect(data.length).toBe(0); | ||
expect(data).toHaveLength(0); | ||
}); | ||
@@ -146,3 +146,3 @@ | ||
const data = stream.until(d => d.date > new Date(2015, 0, 10)); | ||
expect(data.length).toBe(10); | ||
expect(data).toHaveLength(10); | ||
}); | ||
@@ -149,0 +149,0 @@ |
43475
Updated@d3fc/d3fc-rebind@^6.0.1