(chore) run prettier
This commit is contained in:
		| @@ -3,7 +3,6 @@ import { expect } from 'chai'; | ||||
| import { DirectiveParser } from '../../src/parsers/directive.parser'; | ||||
|  | ||||
| describe('DirectiveParser', () => { | ||||
|  | ||||
| 	const templateFilename: string = 'test.template.html'; | ||||
| 	const componentFilename: string = 'test.component.ts'; | ||||
|  | ||||
| @@ -86,5 +85,4 @@ describe('DirectiveParser', () => { | ||||
| 		const keys = parser.extract(contents, componentFilename).keys(); | ||||
| 		expect(keys).to.deep.equal([]); | ||||
| 	}); | ||||
|  | ||||
| }); | ||||
|   | ||||
| @@ -3,7 +3,6 @@ import { expect } from 'chai'; | ||||
| import { MarkerParser } from '../../src/parsers/marker.parser'; | ||||
|  | ||||
| describe('MarkerParser', () => { | ||||
|  | ||||
| 	const componentFilename: string = 'test.component.ts'; | ||||
|  | ||||
| 	let parser: MarkerParser; | ||||
| @@ -12,7 +11,6 @@ describe('MarkerParser', () => { | ||||
| 		parser = new MarkerParser(); | ||||
| 	}); | ||||
|  | ||||
|  | ||||
| 	it('should extract strings using marker function', () => { | ||||
| 		const contents = ` | ||||
| 			import { marker } from '@biesbjerg/ngx-translate-extract-marker'; | ||||
| @@ -35,11 +33,6 @@ describe('MarkerParser', () => { | ||||
| 			_('Mix ' + \`of \` + 'different ' + \`types\`); | ||||
| 		`; | ||||
| 		const keys = parser.extract(contents, componentFilename).keys(); | ||||
| 		expect(keys).to.deep.equal([ | ||||
| 			'Hello world', | ||||
| 			'This is a very very very very long line.', | ||||
| 			'Mix of different types' | ||||
| 		]); | ||||
| 		expect(keys).to.deep.equal(['Hello world', 'This is a very very very very long line.', 'Mix of different types']); | ||||
| 	}); | ||||
|  | ||||
| }); | ||||
|   | ||||
| @@ -3,7 +3,6 @@ import { expect } from 'chai'; | ||||
| import { PipeParser } from '../../src/parsers/pipe.parser'; | ||||
|  | ||||
| describe('PipeParser', () => { | ||||
|  | ||||
| 	const templateFilename: string = 'test.template.html'; | ||||
|  | ||||
| 	let parser: PipeParser; | ||||
| @@ -118,5 +117,4 @@ describe('PipeParser', () => { | ||||
| 		const keys = parser.extract(contents, templateFilename).keys(); | ||||
| 		expect(keys).to.deep.equal(['message']); | ||||
| 	}); | ||||
|  | ||||
| }); | ||||
|   | ||||
| @@ -2,12 +2,9 @@ import { expect } from 'chai'; | ||||
|  | ||||
| import { ServiceParser } from '../../src/parsers/service.parser'; | ||||
|  | ||||
| class TestServiceParser extends ServiceParser { | ||||
|  | ||||
| } | ||||
| class TestServiceParser extends ServiceParser {} | ||||
|  | ||||
| describe('ServiceParser', () => { | ||||
|  | ||||
| 	const componentFilename: string = 'test.component.ts'; | ||||
|  | ||||
| 	let parser: TestServiceParser; | ||||
| @@ -44,7 +41,7 @@ describe('ServiceParser', () => { | ||||
| 		expect(keys).to.deep.equal(['Fallback message']); | ||||
| 	}); | ||||
|  | ||||
| 	it('should extract strings in TranslateService\'s get() method', () => { | ||||
| 	it("should extract strings in TranslateService's get() method", () => { | ||||
| 		const contents = ` | ||||
| 			@Component({ }) | ||||
| 			export class AppComponent { | ||||
| @@ -57,7 +54,7 @@ describe('ServiceParser', () => { | ||||
| 		expect(keys).to.deep.equal(['Hello World']); | ||||
| 	}); | ||||
|  | ||||
| 	it('should extract strings in TranslateService\'s instant() method', () => { | ||||
| 	it("should extract strings in TranslateService's instant() method", () => { | ||||
| 		const contents = ` | ||||
| 			@Component({ }) | ||||
| 			export class AppComponent { | ||||
| @@ -70,7 +67,7 @@ describe('ServiceParser', () => { | ||||
| 		expect(keys).to.deep.equal(['Hello World']); | ||||
| 	}); | ||||
|  | ||||
| 	it('should extract strings in TranslateService\'s stream() method', () => { | ||||
| 	it("should extract strings in TranslateService's stream() method", () => { | ||||
| 		const contents = ` | ||||
| 			@Component({ }) | ||||
| 			export class AppComponent { | ||||
| @@ -83,7 +80,7 @@ describe('ServiceParser', () => { | ||||
| 		expect(keys).to.deep.equal(['Hello World']); | ||||
| 	}); | ||||
|  | ||||
| 	it('should extract array of strings in TranslateService\'s get() method', () => { | ||||
| 	it("should extract array of strings in TranslateService's get() method", () => { | ||||
| 		const contents = ` | ||||
| 			@Component({ }) | ||||
| 			export class AppComponent { | ||||
| @@ -96,7 +93,7 @@ describe('ServiceParser', () => { | ||||
| 		expect(keys).to.deep.equal(['Hello', 'World']); | ||||
| 	}); | ||||
|  | ||||
| 	it('should extract array of strings in TranslateService\'s instant() method', () => { | ||||
| 	it("should extract array of strings in TranslateService's instant() method", () => { | ||||
| 		const contents = ` | ||||
| 			@Component({ }) | ||||
| 			export class AppComponent { | ||||
| @@ -109,7 +106,7 @@ describe('ServiceParser', () => { | ||||
| 		expect(key).to.deep.equal(['Hello', 'World']); | ||||
| 	}); | ||||
|  | ||||
| 	it('should extract array of strings in TranslateService\'s stream() method', () => { | ||||
| 	it("should extract array of strings in TranslateService's stream() method", () => { | ||||
| 		const contents = ` | ||||
| 			@Component({ }) | ||||
| 			export class AppComponent { | ||||
| @@ -298,5 +295,4 @@ describe('ServiceParser', () => { | ||||
| 		const keys = parser.extract(contents, componentFilename).keys(); | ||||
| 		expect(keys).to.deep.equal(['Back']); | ||||
| 	}); | ||||
|  | ||||
| }); | ||||
|   | ||||
| @@ -3,7 +3,6 @@ import { expect } from 'chai'; | ||||
| import { isPathAngularComponent, extractComponentInlineTemplate } from '../../src/utils/utils'; | ||||
|  | ||||
| describe('Utils', () => { | ||||
|  | ||||
| 	it('should recognize js extension as angular component', () => { | ||||
| 		const result = isPathAngularComponent('test.js'); | ||||
| 		expect(result).to.equal(true); | ||||
| @@ -63,5 +62,4 @@ describe('Utils', () => { | ||||
| 		const template = extractComponentInlineTemplate(contents); | ||||
| 		expect(template).to.equal('\n\t\t\t\t\t<p>\n\t\t\t\t\t\tHello World\n\t\t\t\t\t</p>\n\t\t\t\t'); | ||||
| 	}); | ||||
|  | ||||
| }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user