Skip to content

Commit a8281e9

Browse files
committed
Cleaned up test case names
1 parent 033d929 commit a8281e9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/members-csv/test/parse.test.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const csvPath = path.join(__dirname, '/fixtures/');
77
const readCSV = ({filePath, mapping, defaultLabels}) => parse(filePath, mapping, defaultLabels);
88

99
describe('parse', function () {
10-
it('read csv: empty file', async function () {
10+
it('empty file', async function () {
1111
const result = await readCSV({
1212
filePath: csvPath + 'empty.csv'
1313
});
@@ -16,7 +16,7 @@ describe('parse', function () {
1616
result.length.should.eql(0);
1717
});
1818

19-
it('read csv: one column', async function () {
19+
it('one column', async function () {
2020
const result = await readCSV({
2121
filePath: csvPath + 'single-column-with-header.csv'
2222
});
@@ -27,7 +27,7 @@ describe('parse', function () {
2727
result[1].email.should.eql('[email protected]');
2828
});
2929

30-
it('read csv: two columns, 1 filter', async function () {
30+
it('two columns, 1 filter', async function () {
3131
const result = await readCSV({
3232
filePath: csvPath + 'two-columns-with-header.csv'
3333
});
@@ -38,7 +38,7 @@ describe('parse', function () {
3838
result[1].email.should.eql('[email protected]');
3939
});
4040

41-
it('read csv: two columns, 2 filters', async function () {
41+
it('two columns, 2 filters', async function () {
4242
const result = await readCSV({
4343
filePath: csvPath + 'two-columns-obscure-header.csv',
4444
mapping: {
@@ -54,7 +54,7 @@ describe('parse', function () {
5454
result[1].id.should.eql('2');
5555
});
5656

57-
it('read csv: two columns with mapping', async function () {
57+
it('two columns with mapping', async function () {
5858
const result = await readCSV({
5959
filePath: csvPath + 'two-columns-mapping-header.csv',
6060
mapping: {
@@ -74,7 +74,7 @@ describe('parse', function () {
7474
result[1].id.should.eql('2');
7575
});
7676

77-
it('read csv: two columns with partial mapping', async function () {
77+
it('two columns with partial mapping', async function () {
7878
const result = await readCSV({
7979
filePath: csvPath + 'two-columns-mapping-header.csv',
8080
mapping: {
@@ -93,7 +93,7 @@ describe('parse', function () {
9393
result[1].id.should.eql('2');
9494
});
9595

96-
it('read csv: two columns with empty mapping', async function () {
96+
it('two columns with empty mapping', async function () {
9797
const result = await readCSV({
9898
filePath: csvPath + 'two-columns-mapping-header.csv',
9999
mapping: {}
@@ -110,7 +110,7 @@ describe('parse', function () {
110110
result[1].id.should.eql('2');
111111
});
112112

113-
it('read csv: transforms empty values to nulls', async function () {
113+
it('transforms empty values to nulls', async function () {
114114
const result = await readCSV({
115115
filePath: csvPath + 'multiple-records-with-empty-values.csv'
116116
});
@@ -124,7 +124,7 @@ describe('parse', function () {
124124
should.equal(result[1].name, null);
125125
});
126126

127-
it('read csv: transforms "subscribed_to_emails" column to "subscribed" property when the mapping is passed in', async function () {
127+
it(' transforms "subscribed_to_emails" column to "subscribed" property when the mapping is passed in', async function () {
128128
const mapping = {
129129
subscribed_to_emails: 'subscribed'
130130
};
@@ -142,7 +142,7 @@ describe('parse', function () {
142142
assert.equal(result[1].subscribed, false);
143143
});
144144

145-
it('read csv: DOES NOT transforms "subscribed_to_emails" column to "subscribed" property when the WITHOUT mapping', async function () {
145+
it('DOES NOT transforms "subscribed_to_emails" column to "subscribed" property when the WITHOUT mapping', async function () {
146146
const result = await readCSV({
147147
filePath: csvPath + 'subscribed-to-emails-header.csv'
148148
});

0 commit comments

Comments
 (0)