Skip to content

Commit

Permalink
Fix unit tests for compile-contact-summary
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Jul 5, 2018
1 parent c0eb5ec commit 4c2b5fe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
'original';
contact.x = 'from original';
__include_inline__('lib.js');
2 changes: 1 addition & 1 deletion test/data/compile-contact-summary/includes/lib.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
'included';
contact.y = 'from included';
Original file line number Diff line number Diff line change
@@ -1 +1 @@
'a javascript string';
contact.x = 'a string';
4 changes: 2 additions & 2 deletions test/lib/compile-contact-summary.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ describe('compile-contact-summary', function() {
const compiled = compileContactSummary(`${BASE_DIR}/verbatim`);

// then
assert.equal(compiled, '\'a javascript string\';');
assert.equal(compiled, 'contact.x=\'a string\';');
});

it('should include other source file referenced with __include_inline__()', function() {
// when
const compiled = compileContactSummary(`${BASE_DIR}/includes`);

// then
assert.equal(compiled, '\'original\';\'included\';');
assert.equal(compiled, 'contact.x=\'from original\',contact.y=\'from included\';');
});

});
Expand Down

0 comments on commit 4c2b5fe

Please sign in to comment.