Skip to content

Commit

Permalink
test: ✅ migrate parser test to es6
Browse files Browse the repository at this point in the history
  • Loading branch information
rijkerd committed Jun 5, 2021
1 parent b322e19 commit b2dfdf1
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions test/unit/parser.spec.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
'use strict';
import chai from 'chai';
import * as parser from '../../src';

const { expect } = chai;

//global imports
const path = require('path');
const chai = require('chai');
const expect = chai.expect;
const parser = require(path.join(__dirname, '..', '..', 'lib', 'parser'));

describe('parser', function () {

it('should be an object', function () {
describe('parser', () => {
it('should be an object', () => {
expect(parser).to.exist;
expect(parser).to.be.an('object');
});

it('should have all required parser', function () {
it('should have all required parser', () => {
expect(parser.filter).to.exist;
expect(parser.filter).to.be.a('function');

Expand All @@ -32,7 +27,5 @@ describe('parser', function () {

expect(parser.sort).to.exist;
expect(parser.sort).to.be.a('function');

});

});
});

0 comments on commit b2dfdf1

Please sign in to comment.