Skip to content

Commit

Permalink
test fix for keep it boxy exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesparkes committed Jun 29, 2016
1 parent 6bf76fb commit 346c32f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lessons/L5/problem-set/02-keep-it-boxy/js/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
_isCorrect = true;
window.dispatchEvent(new CustomEvent('custom-event-1', {'detail': 'passed'}));
}
} else {
} else if(checkBorderBox() === false) {
if(box1.width() === box1ValidWidths.contentBoxWidth) {
_isCorrect = true;
window.dispatchEvent(new CustomEvent('custom-event-1', {'detail': 'passed'}));
Expand Down Expand Up @@ -63,7 +63,7 @@
_isCorrect = true;
window.dispatchEvent(new CustomEvent('custom-event-2', {'detail': 'passed'}));
}
} else {
} else if(checkBorderBox() === false) {
if(box2.width() === box2ValidWidths.contentBoxWidth) {
_isCorrect = true;
window.dispatchEvent(new CustomEvent('custom-event-2', {'detail': 'passed'}));
Expand Down

0 comments on commit 346c32f

Please sign in to comment.