Fakultas Ilmu Komputer UI

Commit 7db7f714 authored by Zamil Majdy's avatar Zamil Majdy
Browse files

[Test] Add dumper library init test

parent c2f1ce85
import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import ProfilePage from '../ProfilePage';
import Storage from '../lib/Storage';
describe('ProfilePage', () => {
it('renders without problem', () => {
const profile = ReactTestUtils.renderIntoDocument(
<ProfilePage />);
expect(profile).to.exist;
});
});
/* eslint-disable no-unused-expressions */
import Dumper from './../../lib/Dumper';
describe('Dumper', () => {
it('Dumper dump successfully', () => {
const val = Dumper.dump({
hue: ['tes1', 'tes2'],
hui: { huo: '123' },
});
expect(val).to.be.exist;
});
it('Dumper dump correctly', () => {
const val = Dumper.dump({ hue: [1, 2, 3] });
expect(val).to.equal('hue : [ 1,2,3 ]');
})
});
/* eslint-disable no-console no-restricted-syntax no-param-reassign */
export default class Dumper {
static dump(obj, indent) {
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment