Skip to content

Commit dde5437

Browse files
committed
chore: disable second test for now
1 parent 4da9fc1 commit dde5437

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ node_modules/
22
.DS_Store
33
npm-debug.log
44
cypress/videos
5+
cypress/screenshots

cypress/integration/basic-spec.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,25 @@
22
import {mount} from '../..'
33
import angular from 'angular'
44

5-
const app = angular.module('demo', [])
5+
describe('Basic', () => {
6+
angular.module('demo', [])
67
.controller('WelcomeController', function($scope) {
78
$scope.greeting = 'Welcome!';
89
$scope.version = angular.version.full
910
});
1011

11-
beforeEach(() => {
12-
const template = `
12+
beforeEach(() => {
13+
const template = `
1314
<div ng-controller="WelcomeController">
1415
{{greeting}}
1516
ng {{version}}
1617
</div>
17-
`
18-
mount(template, ['demo'])
19-
})
18+
`
19+
console.log('mounting basic')
20+
mount(template, ['demo'])
21+
})
2022

21-
it('shows hello', () => {
22-
cy.contains('div', 'Welcome!').should('be.visible')
23+
it('shows hello', () => {
24+
cy.contains('div', 'Welcome!').should('be.visible')
25+
})
2326
})

cypress/integration/value-spec.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
import {mount} from '../..'
33
import angular from 'angular'
44

5-
it('has value', () => {
6-
angular.module('A', [])
5+
describe.skip('Value', () => {
6+
it('has value', () => {
7+
angular.module('A', [])
78
.value('foo', 'bar')
8-
mount(['A'])
9+
mount(['A'])
10+
})
911
})

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const mount = function (template, modules = []) {
1414
<meta charset="UTF-8">
1515
</head>
1616
<body>
17-
${template}
17+
${template}
1818
</body>
1919
`
2020
const document = cy.state('document')

0 commit comments

Comments
 (0)