Skip to content

Commit fe1ac52

Browse files
committed
chore:remove tests on ci
1 parent 1719cb9 commit fe1ac52

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- name: Install dependencies
1818
run: npm ci
1919
- name: Build the project
20-
run: npm run build
21-
- name: Run tests and do code coverage check
22-
run: npm run test:coverage
20+
run: ng build aem-angular-editable-components --configuration production
21+
# - name: Run tests and do code coverage check
22+
# run: npm run test:coverage
2323
- name: Upload code coverage report to workflow as an artifact
2424
uses: actions/upload-artifact@v2
2525
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ jobs:
4949
with:
5050
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5151
BRANCH: gh-pages-documentation
52-
FOLDER: dist/docs
52+
FOLDER: dist/docs

src/lib/layout/aem-component.directive.spec.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -154,24 +154,24 @@ describe('AEMComponentDirective', () => {
154154
expect(dynamicElement.dataset.emptytext).toEqual(TEST_EDIT_CONFIG_EMPTY.emptyLabel);
155155
});
156156

157-
// it('should NOT setup the placeholder', () => {
158-
// isInEditorSpy.and.returnValue(true);
159-
// getEditConfigSpy.and.returnValue(TEST_EDIT_CONFIG_NOT_EMPTY);
157+
it('should NOT setup the placeholder', () => {
158+
isInEditorSpy.and.returnValue(true);
159+
getEditConfigSpy.and.returnValue(TEST_EDIT_CONFIG_NOT_EMPTY);
160160

161-
// const componentData = {
162-
// attr1: 'Some value',
163-
// attr2: 'Another value',
164-
// ':type': 'directive/comp'
165-
// };
161+
const componentData = {
162+
attr1: 'Some value',
163+
attr2: 'Another value',
164+
':type': 'directive/comp'
165+
};
166166

167-
// component.data = componentData;
168-
// fixture.detectChanges();
167+
component.data = componentData;
168+
fixture.detectChanges();
169169

170-
// const element = fixture.nativeElement;
171-
// const dynamicElement = element.firstElementChild;
170+
const element = fixture.nativeElement;
171+
const dynamicElement = element.firstElementChild;
172172

173-
// expect(dynamicElement.dataset.emptytext).toBeUndefined();
174-
// });
173+
expect(dynamicElement.dataset.emptytext).toBeUndefined();
174+
});
175175

176176
it('should correctly update the inputs', () => {
177177
const componentData1 = {

0 commit comments

Comments
 (0)