Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lab-04-allan-andy-jonah #10

Open
wants to merge 40 commits into
base: master
Choose a base branch
from

Conversation

ohjonah
Copy link

@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

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

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

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