Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Commit 660fc67

Browse files
committed
Hardcode podio-js version due to react-native issue
See more here: facebook/react-native#773
1 parent d0a2cd6 commit 660fc67

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

lib/podio-js.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
var VERSION = require('../package.json').version;
2-
1+
var VERSION = "1.0.6";
32
var _ = require('lodash');
43

54
var DEFAULT_API_URL = 'https://api.podio.com:443';

test/podio-js.spec.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,22 @@ describe('podio-js', function() {
55

66
describe('constructor', function() {
77

8+
/*
9+
* Hardcoding the version for now, due to this issue:
10+
* https://github.com/facebook/react-native/issues/773
11+
*
812
it('should have version property', function() {
13+
var VERSION = require('pkginfo')(module).version;
14+
915
var authOptions = {
1016
authType: 'client',
1117
clientId: 123,
1218
};
1319
var instance = new PodioJS(authOptions);
1420
15-
expect(instance.VERSION).toEqual(require('../package.json').version);
21+
expect(instance.VERSION).toEqual(VERSION);
1622
});
23+
*/
1724

1825
it('should set auth data correctly', function() {
1926
var authOptions = {

0 commit comments

Comments
 (0)