Skip to content

Commit

Permalink
test(pipe-prefix): fix assertion error
Browse files Browse the repository at this point in the history
  • Loading branch information
sneas committed Jul 26, 2018
1 parent 7eefb31 commit f388737
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/pipePrefixRule.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ describe('pipe-prefix', () => {
it('should fail when Pipe has no prefix ng', () => {
let source = `
@Pipe({
name: 'fooBar'
name: 'foo-bar'
~~~~~~~~~~~~~~~
})
class Test {}
`;
assertAnnotated({
ruleName: 'pipe-prefix',
message: 'The name of the Pipe decorator of class Test should start with prefix ng, however its value is "fooBar"',
message: 'The name of the Pipe decorator of class Test should start with prefix ng, however its value is "foo-bar"',
source,
options: ['ng']
});
Expand All @@ -21,14 +21,14 @@ describe('pipe-prefix', () => {
it('should fail when Pipe has no prefix applying multiple prefixes', () => {
let source = `
@Pipe({
name: 'fooBar'
name: 'foo-bar'
~~~~~~~~~~~~~~~
})
class Test {}
`;
assertAnnotated({
ruleName: 'pipe-prefix',
message: 'The name of the Pipe decorator of class Test should start' + ' with prefix ng,mg,sg, however its value is "fooBar"',
message: 'The name of the Pipe decorator of class Test should start' + ' with prefix ng,mg,sg, however its value is "foo-bar"',
source,
options: ['ng', 'mg', 'sg']
});
Expand Down

0 comments on commit f388737

Please sign in to comment.