Skip to content

Commit

Permalink
refactor: rename _bugsnag to bugsnag in test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalwrench committed Mar 6, 2019
1 parent b24de41 commit c3efd00
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions features/fixtures/sampler/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {Component} from 'react'
import {StyleSheet, Text, View} from 'react-native'
import _bugsnag from './index.js';
import bugsnag from './index.js';

function longStackB(index) {
if (index < 1200) {
Expand All @@ -16,16 +16,16 @@ function longStackA(index) {
}

function stoppedSession() {
_bugsnag.startSession()
_bugsnag.stopSession()
_bugsnag.notify(new Error("Stopped session error"))
bugsnag.startSession()
bugsnag.stopSession()
bugsnag.notify(new Error("Stopped session error"))
}

function resumedSession() {
_bugsnag.startSession()
_bugsnag.stopSession()
_bugsnag.resumeSession()
_bugsnag.notify(new Error("Resumed session error"))
bugsnag.startSession()
bugsnag.stopSession()
bugsnag.resumeSession()
bugsnag.notify(new Error("Resumed session error"))
}

type Props = {};
Expand Down
4 changes: 2 additions & 2 deletions features/fixtures/sampler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const config = new Configuration('my API key!')
var endpoint = Platform.OS === 'ios' ? 'http://localhost:9339' : 'http://10.0.2.2:9339'
config.delivery = new StandardDelivery(endpoint, endpoint)
config.autoCaptureSessions = false
const _bugsnag = new Client(config)
const bugsnag = new Client(config)

export default _bugsnag;
export default bugsnag;

import {AppRegistry} from 'react-native'
import App from './App'
Expand Down

0 comments on commit c3efd00

Please sign in to comment.