2021-03-07 15:21:28 +00:00
|
|
|
'use strict';
|
|
|
|
const expect = require('chai').expect;
|
|
|
|
const bufferDefault = require('../../../shims/buffer').default;
|
|
|
|
const bufferNamed = require('../../../shims/buffer').Buffer;
|
|
|
|
const bufferActual = require('../../../src/index').Buffer;
|
|
|
|
|
2021-03-20 14:00:32 +00:00
|
|
|
describe('path shim', () => {
|
2021-03-07 15:21:28 +00:00
|
|
|
it('default export should be defined', () => {
|
|
|
|
expect(bufferDefault).to.not.be.undefined;
|
|
|
|
});
|
|
|
|
|
|
|
|
it('named export should be defined', () => {
|
|
|
|
expect(bufferNamed).to.not.be.undefined;
|
|
|
|
});
|
|
|
|
|
|
|
|
it('default export should be re-exposing Buffer', () => {
|
|
|
|
expect(bufferDefault).to.equal(bufferActual);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('named export should be re-exposing Buffer', () => {
|
|
|
|
expect(bufferNamed).to.equal(bufferActual);
|
|
|
|
});
|
|
|
|
});
|