Skip to content

Commit

Permalink
adding test.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed May 17, 2015
1 parent 324c76c commit 29dab51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/formatSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,10 @@ describe("Method as.format", function () {
});
}).toThrow("Property 'PropName' doesn't exist.");

expect(pgp.as.format("$(test)^", {
test: 'hello'
})).toBe("'hello'^");

// wrong-formatted variables tests:
expect(pgp.as.format("$()", {})).toBe("$()");
expect(pgp.as.format("${test)", {})).toBe("${test)");
Expand Down

0 comments on commit 29dab51

Please sign in to comment.