Skip to content

Commit

Permalink
Fixed remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
kirovboris committed Jan 10, 2017
1 parent 5acdeaf commit 53d31bb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Expand Up @@ -40,7 +40,7 @@ export class FunctionTransform {

export class SelectorNodeTransform {
constructor (customDOMProperties) {
this.type = 'Node';
this.type = 'Node';
this.customDOMProperties = customDOMProperties || {};
}

Expand Down
2 changes: 1 addition & 1 deletion src/errors/test-run/templates.js
Expand Up @@ -80,7 +80,7 @@ export default {
`),

[TYPE.uncaughtErrorInCustomDOMPropertyCode]: err => markup(err, `
An error occurred when trying to calculate a custom Selector property ${err.property}:
An error occurred when trying to calculate a custom Selector property "${err.property}":
${escapeHtml(err.errMsg)}
`),
Expand Down
4 changes: 2 additions & 2 deletions test/functional/fixtures/api/es-next/selector/test.js
Expand Up @@ -266,7 +266,7 @@ describe('[API] Selector', function () {
})
.catch(function (errs) {
expect(errs[0]).contains(
"Custom DOM properties method \'prop1\' is expected to be a function, but it was number"
"Custom DOM properties method \'prop1\' is expected to be a string or a function, but it was number"
);
expect(errs[0]).contains("> 936 | await Selector('rect').addCustomDOMProperties({ prop1: 1, prop2: () => 42 });");
});
Expand All @@ -281,7 +281,7 @@ describe('[API] Selector', function () {
})
.catch(function (errs) {
expect(errs[0]).contains(
'An error occurred when trying to calculate a custom Selector property prop: Error: test'
'An error occurred when trying to calculate a custom Selector property "prop": Error: test'
);
expect(errs[0]).contains('> 946 | await el();');
});
Expand Down
@@ -1,4 +1,4 @@
An error occurred when trying to calculate a custom Selector property prop:
An error occurred when trying to calculate a custom Selector property "prop":

Error: Custom script error

Expand Down

0 comments on commit 53d31bb

Please sign in to comment.