Skip to content

Commit 0f2e5cf

Browse files
committed
chore: change all Firebase URLs in tests to local server
1 parent ad34e1b commit 0f2e5cf

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/angularfire.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
defaultFirebase
1717
} from './angularfire';
1818

19-
const testUrl = 'http://test.firebaseio.com:5000/';
19+
const testUrl = 'http://localhost.firebaseio.test:5000/';
2020

2121
describe('angularfire', () => {
2222
it('should be injectable via FIREBASE_PROVIDERS', () => {

src/providers/auth.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('FirebaseAuth', () => {
3535
authCb = null;
3636
injector = Injector.resolveAndCreate([
3737
provide(FirebaseUrl, {
38-
useValue: 'https://ng2-forum-demo.firebaseio.com'
38+
useValue: 'ws://localhost.firebaseio.test:5000'
3939
}),
4040
FIREBASE_PROVIDERS
4141
]);

src/providers/firebase_list.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Todo {
1414
done:boolean;
1515
}
1616

17-
const rootFirebase = 'ws://test.firebaseio.com:5000';
17+
const rootFirebase = 'ws://localhost.firebaseio.test:5000';
1818

1919
const sharedTemplate = `
2020
<h1>Todos</h1>
@@ -122,5 +122,5 @@ describe('FirebaseList', () => {
122122
expect(postRows.length).toBe(1);
123123
});
124124
}));
125-
125+
126126
});

src/utils/absolute_path_resolver.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {absolutePathResolver} from './absolute_path_resolver';
22
describe('absolutePathResolver', () => {
33
it('should return fully qualified url for relative path', () => {
4-
var root = 'ws://test.firebaseio.com';
4+
var root = 'ws://localhost.firebaseio.test:5000';
55
var path = '/questions';
66
expect(absolutePathResolver(root, path)).toBe(`${root}${path}`);
77
})

src/utils/firebase_list_factory.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ onChildUpdated} from '../utils/firebase_list_factory';
66

77
import {beforeEach, it, describe, expect} from 'angular2/testing';
88

9-
const rootFirebase = 'ws://test.firebaseio.com:5000';
9+
const rootFirebase = 'ws://localhost.firebaseio.test:5000';
1010

1111
describe('FirebaseListFactory', () => {
1212
it('should emit a new value when a child moves', () => {
@@ -32,7 +32,7 @@ describe('FirebaseListFactory', () => {
3232

3333
it('should call off on all events when disposed', () => {
3434
var firebaseSpy = spyOn(Firebase.prototype, 'off');
35-
var subscribed = FirebaseListFactory('ws://test.firebaseio.com:5000').subscribe();
35+
var subscribed = FirebaseListFactory(rootFirebase).subscribe();
3636
expect(firebaseSpy).not.toHaveBeenCalled();
3737
subscribed.unsubscribe();
3838
expect(firebaseSpy).toHaveBeenCalled();

src/utils/firebase_observable.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('FirebaseObservable', () => {
2323

2424

2525
it('should call push on the underlying ref', () => {
26-
var fbref =new Firebase('ws://test.firebaseio.com:5000');
26+
var fbref =new Firebase('ws://localhost.firebaseio.test:5000');
2727
var pushSpy = spyOn(fbref, 'push');
2828
var O:FirebaseObservable<any> = new FirebaseObservable((observer:Observer<any>) => {
2929
}, fbref);

0 commit comments

Comments
 (0)