Skip to content

Commit 1b631c3

Browse files
authored
import config from index.js instead of from config.js (#115)
This allows for someone to stub functions.config() properly from a unit test.
1 parent b45ff23 commit 1b631c3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

spec/providers/database.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import * as database from '../../src/providers/database';
2424
import { expect as expect } from 'chai';
2525
import { fakeConfig } from '../support/helpers';
2626
import {apps as appsNamespace} from '../../src/apps';
27-
import {config} from '../../src/config';
27+
import {config} from '../../src/index';
2828

2929
describe('DatabaseBuilder', () => {
3030

spec/providers/storage.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import * as storage from '../../src/providers/storage';
2424
import { expect as expect } from 'chai';
2525
import {fakeConfig} from '../support/helpers';
26-
import {config} from '../../src/config';
26+
import {config} from '../../src/index';
2727

2828
describe('storage.FunctionBuilder', () => {
2929
before(() => {

src/apps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
import * as _ from 'lodash';
2424
import * as firebase from 'firebase-admin';
25-
import {config} from './config';
25+
import {config} from './index';
2626
import sha1 = require('sha1');
2727

2828
/** @internal */

0 commit comments

Comments
 (0)