Skip to content

lab-04-allan-andy-jonah#10

Open
ohjonah wants to merge 40 commits intocodefellows-javascript-401d17:masterfrom
ohjonah:master
Open

lab-04-allan-andy-jonah#10
ohjonah wants to merge 40 commits intocodefellows-javascript-401d17:masterfrom
ohjonah:master

Conversation

@ohjonah
Copy link
Copy Markdown

@ohjonah ohjonah commented Jul 24, 2017

Really awesome group project, with very good group synergy and mob/pair programming through most of the codebase. Need to add tests, but wanted to make PR available so that group members could get their submissions in, while going for a retry later.

ohjonah and others added 30 commits July 20, 2017 12:49
Features/tests-for-BM-reader
added transformer files, tribute lou reed, input is 'colorArrayText'
Uses a encoding 'hex' to convert hex string from object
typo in bitmap constructor makes value log wrong key value
const expect = require('chai').expect;
const bitmapFileHelper = require(`${__dirname}/../lib/bitmap-file-helper.js`);

describe('Bitmap File Helper', function() {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point you should test the main point of your program which is the writing new files after the transform.

bitmapFileHelper(`${__dirname}/../assets/palette-bitmap.bmp`, function(err, data) {
if(err) throw err;
let result = new bitmapConstructor.Bitmap(data);
expect(result).to.be.an('object');
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

being an object is a pretty simple condition. You may want to test properties on the object that you create.

const infraredTransform = require(`${__dirname}/lib/infrared-transform.js`);


bitmapFileHelper(`${__dirname}/assets/palette-bitmap.bmp`, function(err, data) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These function calls could be handled modularly in fileHelper. That would allow you to test your whole writing file path easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants