aboutsummaryrefslogtreecommitdiff
path: root/tests/info.test.ts
blob: a710246d555f9e6a9b97c6c4a46e72cffe9f954d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { Frame } from '../src/index';
import { expect } from 'chai';
import { data, header } from './support/people';

const frame = new Frame(data, header);

describe('info.ts', () => {
  describe('Print size of frame', () => {
    it('should print the size of the frame', () => {
      const size = frame.size;
      expect(size).to.equal(35);
    });
  });
  describe('Print shape of frame', () => {
    it('should print the shape of the frame', () => {
      const shape = frame.shape;
      expect(shape).to.equal('9 x 4');
    });
  });
  describe('Print type of data in each column', () => {
    it('should print the type of data in each column', () => {
      frame.info();
    });
  });
});