Skip to content

Instantly share code, notes, and snippets.

@thejohnnybot
Created June 12, 2017 16:32
Show Gist options
  • Select an option

  • Save thejohnnybot/ecb7c74896b18f180994e9acc37c08ef to your computer and use it in GitHub Desktop.

Select an option

Save thejohnnybot/ecb7c74896b18f180994e9acc37c08ef to your computer and use it in GitHub Desktop.
selector iframe value result
#some #iframe black black
#some #iframe yellow yellow
#some #iframe red red
#some #iframe violet violet
#some #iframe green green
const fs = require('fs');
const parse = require('csv-parse');
const file = fs.readFileSync(`${__dirname}/cases.csv`);
test('assertings a bunch of inputs', () => {
parse(file, {columns: true}, (err, output) => {
output.forEach((record) => {
expect(record.value).toBe(record.result);
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment