Skip to content

Commit 57f7cc6

Browse files
committed
test: fix tests to account for new standalone default
Updates tests to account for the new standalone default
1 parent ca9537e commit 57f7cc6

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

integration/lsp/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jasmine_test(
1010
],
1111
args = ["*_spec.js"],
1212
chdir = package_name(),
13-
tags = ["e2e"],
13+
tags = ["e2e", "no-sandbox"],
1414
)
1515

1616
copy_to_bin(

integration/lsp/ivy_spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ export class AppComponent {
356356

357357
const expectedRenameInComponent = {
358358
range: {
359-
start: {line: 6, character: 2},
360-
end: {line: 6, character: 7},
359+
start: {line: 7, character: 2},
360+
end: {line: 7, character: 7},
361361
},
362362
newText: 'subtitle',
363363
};
@@ -407,8 +407,8 @@ export class AppComponent {
407407
describe('property rename', () => {
408408
const expectedRenameInComponent = {
409409
range: {
410-
start: {line: 7, character: 2},
411-
end: {line: 7, character: 6},
410+
start: {line: 8, character: 2},
411+
end: {line: 8, character: 6},
412412
},
413413
newText: 'surname',
414414
};
@@ -439,7 +439,7 @@ export class AppComponent {
439439
textDocument: {
440440
uri: APP_COMPONENT_URI,
441441
},
442-
position: {line: 7, character: 4},
442+
position: {line: 8, character: 4},
443443
newName: 'surname'
444444
});
445445
expect(response).not.toBeNull();

integration/project/app/app.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {Component, EventEmitter, Input, Output} from '@angular/core';
33
@Component({
44
selector: 'my-app',
55
template: `<h1>Hello {{name}}</h1>`,
6+
standalone: false,
67
})
78
export class AppComponent {
89
name = 'Angular';

integration/project/app/foo.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Component, signal } from '@angular/core';
22

33
@Component({
44
templateUrl: 'foo.component.html',
5+
standalone: false,
56
})
67
export class FooComponent {
78
title = 'Foo Component';

0 commit comments

Comments
 (0)