Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
423 bytes
|
Line | |
---|
1 | var fails = require('../internals/fails');
|
---|
2 | var whitespaces = require('../internals/whitespaces');
|
---|
3 |
|
---|
4 | var non = '\u200B\u0085\u180E';
|
---|
5 |
|
---|
6 | // check that a method works with the correct list
|
---|
7 | // of whitespaces and has a correct name
|
---|
8 | module.exports = function (METHOD_NAME) {
|
---|
9 | return fails(function () {
|
---|
10 | return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;
|
---|
11 | });
|
---|
12 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.