-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: master
Are you sure you want to change the base?
Conversation
Features/scaffold
Features/tests-for-BM-reader
added transformer files, tribute lou reed, input is 'colorArrayText'
Features/constructor test
Features/bitmap transform add in
Features/write to bmp
Uses a encoding 'hex' to convert hex string from object
typo in bitmap constructor makes value log wrong key value
Features/write to bmp
adds red transform
adds greyscale transform test
Adding in Allan's Code
Andys tests
Adding in Andy's Tests
Refactors Constructor and Helper Tests for Test Cases
const expect = require('chai').expect; | ||
const bitmapFileHelper = require(`${__dirname}/../lib/bitmap-file-helper.js`); | ||
|
||
describe('Bitmap File Helper', function() { |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
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.