Jakob Linskeseder
e534a911f3
Upgrade prettier to v2
...
Prettier v2 has the following breaking changes:
* enforces spaces between `function` and params
* enforces trailing commas by default
2022-10-29 21:49:15 +02:00
John Boehr
77825f8d35
refator: In spec tests, use expectTemplate over equals and shouldThrow ( #1683 )
2020-05-05 00:04:33 +02:00
Nils Knappmeier
d7f0dcf2bb
refactor: fix typo in private test method
2020-01-08 23:17:23 +01:00
Nils Knappmeier
e97685e989
style: reformat all files using prettier
2019-12-03 22:37:15 +01:00
Nils Knappmeier
1988878087
fix: add more properties required to be enumerable
...
- __defineGetter__, __defineSetter__, __lookupGetter__, __proto__
2019-11-18 07:33:45 +01:00
Nils Knappmeier
93516a0b07
test: add sinon.js for spies, deprecate current assertions
...
- the goal is to get overall cleaner test.
- chai and sinon are standard libraries for testing
assertions and spies. We should not use custom ones.
2019-11-15 16:38:28 +01:00
Nils Knappmeier
c2ac79c970
test: add fluent API for testing Handlebars
...
use "expectTemplate(template)....toCompileTo(output)"
2019-11-13 22:02:05 +01:00
Nils Knappmeier
a1d864d4a7
chore: bump various dependencies
...
- grunt -> 1
- grunt-contrib-watch -> 1
- mocha -> 5
- in common.js: define "global" , see mochajs/mocha#1159
- in builtins.js: revert "console.log" to old value just
after using the mock (in log-helper tests), because
mocha calls "console.log" on failure, before
"afterEach"
2018-09-04 00:15:02 +02:00
kpdecker
861d6f7b8d
Fix tests under IE
2015-09-23 21:59:58 -05:00
kpdecker
f71f4e759e
Better assert message in shouldThrow
2015-09-02 20:42:49 -05:00
kpdecker
958273c2e6
Add object option to test runner
2015-08-18 23:13:15 -07:00
kpdecker
624a4c71aa
Cleanup stack traces for test assertions
2015-08-14 15:20:09 -05:00
kpdecker
e3d3eda2e1
Add full support for es6
...
Converts the tool chain to use babel, eslint, and webpack vs. the previous proprietary solutions.
Additionally begins enforcing additional linting concerns as well as updates the code to reflect these rules.
Fixes #855
Fixes #993
2015-04-16 16:43:01 -05:00
kpdecker
3cf47abe19
Include error info when throwing type error
2015-01-17 19:19:30 -06:00
kpdecker
632fadcea3
Add preventIndent option for partials
...
This disables the standalone partial indent behavior required by the Mustache spec and allows for users to utilize partials in the same manner as under 1.x.
Fixes #858
2014-11-02 12:19:56 -06:00
kpdecker
9f07a34955
Additional test coverage
2014-08-15 00:05:37 -05:00
kpdecker
cb22ee5681
Increase test coverage a touch
2014-08-14 12:25:35 -05:00
kpdecker
c98613b711
Implement recursive field lookup in compat mode
...
Provides the mustache behavior of recursive lookup without the use of depthed paths.
Note that this does incur a fairly dramatic performance penalty for depthed queries.
2014-08-13 20:46:42 -05:00
kpdecker
f4af8e06b6
Allow compat flag in test specs
2014-08-11 20:10:12 -05:00
kpdecker
905f99b18c
Minor test cleanup
2014-08-11 20:08:29 -05:00
kpdecker
4942324250
Move away from should asserts to internal
...
This is needed as neither Sinon nor Chai support in-browser testing under IE.
2013-12-23 02:19:09 -06:00
kpdecker
0cf5657c43
Use shouldThrow helper for test asserts
2013-12-23 02:19:09 -06:00
kpdecker
adda0569e0
Refactor qunit unit tests
...
Allows for testing node, browser, and precompiled modes in the node
tests. Also reorganizes the qunit spec file to provide better
organization.
2013-06-01 23:45:43 -05:00