Skip to content

Commit

Permalink
1.6.0: Maintenance release
Browse files Browse the repository at this point in the history
 * Updated all dependencies
 * Use `--require` option for Mocha i.s.o. `--compilers` because that's [deprecated](https://github.com/mochajs/mocha/wiki/compilers-deprecation)
 * Added package-lock.json
 * Added VS Code launch config
 * Updated Travis config with new Node JS versions
  • Loading branch information
Download committed Mar 23, 2018
1 parent 182b7e4 commit 507e377
Show file tree
Hide file tree
Showing 6 changed files with 5,476 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ before_script: 'npm install'
language: node_js
node_js:
- "node"
- "8"
- "7"
- "6"
- "5"
- "4"
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"--require",
"babel-core/register",
"./{,!(node_modules)/**}/*.test.js",
"--timeout",
"999999",
"--colors"
],
"internalConsoleOptions": "openOnSessionStart"
}
]
}
7 changes: 3 additions & 4 deletions __tests__/ComponentInterpolator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('ComponentInterpolator', function() {

it('interpolates wrapper components', function() {
var subject = Subject({
string: 'Ohai, Jane, click *here* right ***now **please** ***',
string: 'Hi, Jane, click *here* right ***now **please** ***',
wrappers: {
'*': <a href='/'><img />$1</a>,
'**': <i>$1</i>,
Expand All @@ -49,11 +49,10 @@ describe('ComponentInterpolator', function() {
var rendered = removeNoise(render(subject));
log.log(log.name + ': rendered=', rendered);
expect(rendered).to.equal(
'<hr>Ohai, Jane, click <a href="/"><img>here</a> right <b><em>now <i>please</i> </em></b>'
'<hr />Hi, Jane, click <a href="/"><img />here</a> right <b><em>now <i>please</i> </em></b>'
);
});


it('interpolates placeholder components', function() {
var subject = Subject({
string: 'Hi %{user} (%{user_id}), create %{count} new accounts',
Expand All @@ -66,7 +65,7 @@ describe('ComponentInterpolator', function() {
var rendered = removeNoise(render(subject));
log.log(log.name + ': rendered=', rendered);
expect(rendered).to.equal(
'Hi Jane (0), create <input> new accounts'
'Hi Jane (0), create <input /> new accounts'
);
});
});
Expand Down
Loading

0 comments on commit 507e377

Please sign in to comment.