[ADF-3591] spellcheck support for code (#3827)

* setup spellcheck
This commit is contained in:
Denys Vuika
2018-10-23 15:05:38 +01:00
committed by Eugenio Romano
parent 53d96679ea
commit e39a2b149b
262 changed files with 1561 additions and 1005 deletions

View File

@@ -163,7 +163,7 @@ describe('Test PdfViewer component', () => {
});
describe('Required values', () => {
it('should thrown an error If urlfile is not present', () => {
it('should thrown an error If urlFile is not present', () => {
change = new SimpleChange(null, null, true);
expect(() => {
@@ -223,6 +223,7 @@ describe('Test PdfViewer component', () => {
fixtureUrlTestComponent.detectChanges();
fixtureUrlTestComponent.whenStable().then(() => {
/* cspell:disable-next-line */
expect(elementUrlTestComponent.querySelector('.viewer-pagenumber-input')).toBeDefined();
expect(elementUrlTestComponent.querySelector('.viewer-total-pages')).toBeDefined();
@@ -292,6 +293,7 @@ describe('Test PdfViewer component', () => {
fixtureBlobTestComponent.detectChanges();
fixtureBlobTestComponent.whenStable().then(() => {
/* cspell:disable-next-line */
expect(elementBlobTestComponent.querySelector('.viewer-pagenumber-input')).toBeDefined();
expect(elementBlobTestComponent.querySelector('.viewer-total-pages')).toBeDefined();
@@ -486,7 +488,7 @@ describe('Test PdfViewer component', () => {
describe('Viewer events', () => {
it('should react on the emit of pagechange event', (done) => {
it('should react on the emit of pageChange event', (done) => {
fixtureUrlTestComponent.detectChanges();
fixtureUrlTestComponent.whenStable().then(() => {
const args = {
@@ -496,6 +498,7 @@ describe('Test PdfViewer component', () => {
}
};
/* cspell:disable-next-line */
componentUrlTestComponent.pdfViewerComponent.pdfViewer.eventBus.dispatch('pagechange', args);
fixtureUrlTestComponent.detectChanges();
@@ -507,7 +510,7 @@ describe('Test PdfViewer component', () => {
});
}, 5000);
it('should react on the emit of pagesloaded event', (done) => {
it('should react on the emit of pagesLoaded event', (done) => {
fixtureUrlTestComponent.detectChanges();
fixtureUrlTestComponent.whenStable().then(() => {
expect(componentUrlTestComponent.pdfViewerComponent.isPanelDisabled).toBeFalsy();
@@ -519,6 +522,7 @@ describe('Test PdfViewer component', () => {
}
};
/* cspell:disable-next-line */
componentUrlTestComponent.pdfViewerComponent.pdfViewer.eventBus.dispatch('pagesloaded', args);
fixtureUrlTestComponent.detectChanges();