Skip to content
This repository was archived by the owner on Sep 14, 2020. It is now read-only.

Commit c3efd00

Browse files
committed
refactor: rename _bugsnag to bugsnag in test fixture
1 parent b24de41 commit c3efd00

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

features/fixtures/sampler/App.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, {Component} from 'react'
22
import {StyleSheet, Text, View} from 'react-native'
3-
import _bugsnag from './index.js';
3+
import bugsnag from './index.js';
44

55
function longStackB(index) {
66
if (index < 1200) {
@@ -16,16 +16,16 @@ function longStackA(index) {
1616
}
1717

1818
function stoppedSession() {
19-
_bugsnag.startSession()
20-
_bugsnag.stopSession()
21-
_bugsnag.notify(new Error("Stopped session error"))
19+
bugsnag.startSession()
20+
bugsnag.stopSession()
21+
bugsnag.notify(new Error("Stopped session error"))
2222
}
2323

2424
function resumedSession() {
25-
_bugsnag.startSession()
26-
_bugsnag.stopSession()
27-
_bugsnag.resumeSession()
28-
_bugsnag.notify(new Error("Resumed session error"))
25+
bugsnag.startSession()
26+
bugsnag.stopSession()
27+
bugsnag.resumeSession()
28+
bugsnag.notify(new Error("Resumed session error"))
2929
}
3030

3131
type Props = {};

features/fixtures/sampler/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const config = new Configuration('my API key!')
66
var endpoint = Platform.OS === 'ios' ? 'http://localhost:9339' : 'http://10.0.2.2:9339'
77
config.delivery = new StandardDelivery(endpoint, endpoint)
88
config.autoCaptureSessions = false
9-
const _bugsnag = new Client(config)
9+
const bugsnag = new Client(config)
1010

11-
export default _bugsnag;
11+
export default bugsnag;
1212

1313
import {AppRegistry} from 'react-native'
1414
import App from './App'

0 commit comments

Comments
 (0)