aboutsummaryrefslogtreecommitdiff
path: root/tests/frames.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/frames.ts')
-rw-r--r--tests/frames.ts49
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/frames.ts b/tests/frames.ts
deleted file mode 100644
index ff778c3..0000000
--- a/tests/frames.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-import { expect } from 'chai';
-import Izuku from '../src/index';
-
-describe('frames.ts', () => {
- describe('Create a new frame with column names', () => {
- it('should create a new frame', () => {
- const newframe = new Izuku([
- ['a', 'b', 'c'],
- ['d', 'e', 'f'],
- ['g', 'h', 'i']
- ]);
- expect(newframe.data()).to.deep.equal([
- ['a', 'b', 'c'],
- ['d', 'e', 'f'],
- ['g', 'h', 'i']
- ]);
- newframe.columns(['a', 'b', 'c']);
- expect(newframe.columns()).to.deep.equal(['a', 'b', 'c']);
- });
- });
- describe('Update a frame and column names', () => {
- it('should update a frame', () => {
- const newframe = new Izuku([
- ['a', 'b', 'c'],
- ['d', 'e', 'f'],
- ['g', 'h', 'i']
- ]);
- newframe.columns(['a', 'b', 'c']);
- expect(newframe.data()).to.deep.equal([
- ['a', 'b', 'c'],
- ['d', 'e', 'f'],
- ['g', 'h', 'i']
- ]);
- expect(newframe.columns()).to.deep.equal(['a', 'b', 'c']);
- newframe.data([
- ['j', 'k', 'l'],
- ['m', 'n', 'o'],
- ['p', 'q', 'r']
- ]);
- newframe.columns(['j', 'k', 'l']);
- expect(newframe.data()).to.deep.equal([
- ['j', 'k', 'l'],
- ['m', 'n', 'o'],
- ['p', 'q', 'r']
- ]);
- expect(newframe.columns()).to.deep.equal(['j', 'k', 'l']);
- });
- });
-});