Created
June 12, 2017 16:32
-
-
Save thejohnnybot/ecb7c74896b18f180994e9acc37c08ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| selector | iframe | value | result | |
|---|---|---|---|---|
| #some | #iframe | black | black | |
| #some | #iframe | yellow | yellow | |
| #some | #iframe | red | red | |
| #some | #iframe | violet | violet | |
| #some | #iframe | green | green |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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