theia
Version:
Finds all npm modules in your directory and detects packages that are missing from your package.json
20 lines (14 loc) • 463 B
JavaScript
/*eslint-disable no-unused-expressions*/
;
require('../lib/polyfills');
var expect = require('chai').expect;
describe('String.endsWith polyfill', function () {
var file1 = 'file.js';
var file2 = 'file.html';
it('should work', function () {
expect(file1.endsWith('.js')).to.be.true;
expect(file1.endsWith('.html')).to.be.false;
expect(file2.endsWith('.html')).to.be.true;
expect(file2.endsWith('.js')).to.be.false;
});
});