Skip to content

Commit

Permalink
Update: Test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Nov 10, 2017
1 parent 4a9e63a commit ed022e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion test/integration.js
@@ -1,6 +1,5 @@
'use strict';

var os = require('os');
var path = require('path');

var fs = require('graceful-fs');
Expand Down
12 changes: 6 additions & 6 deletions test/src.js
Expand Up @@ -128,7 +128,7 @@ describe('.src()', function() {
], done);
});

it('strips BOM from utf8-encoded files by default', function(done) {
it('removes BOM from utf8-encoded files by default', function(done) {
// U+FEFF takes up 3 bytes in UTF-8: http://mothereff.in/utf-8#%EF%BB%BF
var expectedContent = fs.readFileSync(bomInputPath).slice(3);

Expand All @@ -143,7 +143,7 @@ describe('.src()', function() {
], done);
});

it('does not strip BOM from utf8-encoded files if option is false', function(done) {
it('does not remove BOM from utf8-encoded files if option is false', function(done) {
var expectedContent = fs.readFileSync(bomInputPath);

function assert(files) {
Expand All @@ -159,7 +159,7 @@ describe('.src()', function() {

// This goes for any non-UTF-8 encoding.
// UTF-16-BE is enough to demonstrate this is done properly.
it('does not strip anything that looks like a utf8-encoded BOM from utf16be-encoded files', function(done) {
it('does not remove anything that looks like a utf8-encoded BOM from utf16be-encoded files', function(done) {
var expectedContent = fs.readFileSync(beEncodedInputPath);

function assert(files) {
Expand All @@ -173,7 +173,7 @@ describe('.src()', function() {
], done);
});

it('does not strip anything that looks like a utf8-encoded BOM from utf16be-encoded files with streaming contents', function(done) {
it('does not remove anything that looks like a utf8-encoded BOM from utf16be-encoded files with streaming contents', function(done) {
var expectedContent = fs.readFileSync(beEncodedInputPath);

function assertContent(contents) {
Expand Down Expand Up @@ -203,7 +203,7 @@ describe('.src()', function() {

// This goes for any non-UTF-8 encoding.
// UTF-16-LE is enough to demonstrate this is done properly.
it('does not strip anything that looks like a utf8-encoded BOM from utf16le-encoded files', function(done) {
it('does not remove anything that looks like a utf8-encoded BOM from utf16le-encoded files', function(done) {
var expectedContent = fs.readFileSync(leEncodedInputPath);

function assert(files) {
Expand All @@ -217,7 +217,7 @@ describe('.src()', function() {
], done);
});

it('does not strip anything that looks like a utf8-encoded BOM from utf16le-encoded files with streaming contents', function(done) {
it('does not remove anything that looks like a utf8-encoded BOM from utf16le-encoded files with streaming contents', function(done) {
var expectedContent = fs.readFileSync(leEncodedInputPath);

function assertContent(contents) {
Expand Down

0 comments on commit ed022e2

Please sign in to comment.