Skip to content

Commit

Permalink
fixed tests for non-tty and case sensetive file system
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Wilkowski <[email protected]>
  • Loading branch information
dominikwilkowski committed Apr 27, 2018
1 parent ecd5a76 commit f5a2427
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/unit/getfont.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ const fontArray = [

Object.keys( CFonts.__test__.FONTFACES )
.filter( font => font !== 'console' )
.map( font => {
.map( fontkey => {
const font = CFonts.__test__.FONTFACES[ fontkey ];

test(`GetFont - ${ font } font should exist and have the right keys`, () => {
expect( Object.keys( GetFont( font ) ) ).toEqual( fontArray );
});
Expand Down
2 changes: 1 addition & 1 deletion test/unit/render.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ test(`Render - Output debug infos`, () => {


test(`Render - Render block font`, () => {
const test = Render( 'text', false, 1, { width: 100, height: 10 } );
const test = Render( 'text', {}, false, 1, { width: 100, height: 10 } );

expect( test.string ).toBe(
'\n\n' +
Expand Down

0 comments on commit f5a2427

Please sign in to comment.