Skip to content

Commit c888910

Browse files
committed
chore(folder-structure): Fixes for tests
1 parent 2e3121b commit c888910

File tree

10 files changed

+131
-44
lines changed

10 files changed

+131
-44
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ cache:
66
- node_modules
77
node_js:
88
# use same node version as meteor does
9-
- "5"
9+
- "6"
1010
services:
1111
- mongodb
1212
before_install: curl https://install.meteor.com | /bin/sh
1313
before_script:
1414
# remove unused node modules from cache
15-
- "npm prune"
15+
- npm prune
16+
- npm install -g webpack@^1.12.9 eslint@^1.10.3
17+
- npm install
18+
- npm run test

dist/angular-meteor.js

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,9 @@ return /******/ (function(modules) { // webpackBootstrap
103103

104104
// legacy
105105
// lib
106-
107-
108106
var name = 'angular-meteor';
109107

110108
// new
111-
112109
exports.default = name;
113110

114111

@@ -611,9 +608,9 @@ return /******/ (function(modules) { // webpackBootstrap
611608

612609
'use strict';
613610

614-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; /*global
615-
angular, _, Tracker, EJSON, FS, Mongo
616-
*/
611+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /*global
612+
angular, _, Tracker, EJSON, FS, Mongo
613+
*/
617614

618615
var _underscore = __webpack_require__(2);
619616

@@ -1358,7 +1355,7 @@ return /******/ (function(modules) { // webpackBootstrap
13581355
}, true);
13591356

13601357
this.unregisterAutoDestroy = $rootScope.$on('$destroy', function () {
1361-
if (self && self.stop) self.pop();
1358+
if (self && self.stop) self.stop();
13621359
});
13631360
};
13641361

@@ -1716,7 +1713,7 @@ return /******/ (function(modules) { // webpackBootstrap
17161713
var _this = this;
17171714

17181715
// Used to store method's caller
1719-
var caller = undefined;
1716+
var caller = void 0;
17201717

17211718
this._mixins = [];
17221719
// Apply mixins automatically on specified contexts
@@ -1762,12 +1759,9 @@ return /******/ (function(modules) { // webpackBootstrap
17621759
// Extend prototype with the defined mixins
17631760
this._extend = function (obj, options) {
17641761
var _$defaults = _underscore2.default.defaults({}, options, {
1765-
pattern: /.*/ });
1766-
1767-
var pattern = _$defaults.pattern;
1768-
var context = _$defaults.context;
1769-
// The patterns of the keys which will be filtered
1770-
1762+
pattern: /.*/ }),
1763+
pattern = _$defaults.pattern,
1764+
context = _$defaults.context;
17711765

17721766
var mixins = _this._mixins.map(function (mixin) {
17731767
// Filtering the keys by the specified pattern
@@ -1886,7 +1880,7 @@ return /******/ (function(modules) { // webpackBootstrap
18861880

18871881
// Calls Meteor.autorun() which will be digested after each run and automatically destroyed
18881882
$$Core.autorun = function (fn) {
1889-
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
1883+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
18901884

18911885
fn = this.$bindToContext($Mixer.caller, fn);
18921886

@@ -1989,7 +1983,7 @@ return /******/ (function(modules) { // webpackBootstrap
19891983

19901984
// Stops a process once the scope has been destroyed
19911985
$$Core.$$autoStop = function (stoppable) {
1992-
var removeListener = undefined;
1986+
var removeListener = void 0;
19931987
var baseStop = stoppable.stop.bind(stoppable);
19941988

19951989
// Once the process has been stopped the destroy event listener will be removed
@@ -2184,7 +2178,7 @@ return /******/ (function(modules) { // webpackBootstrap
21842178
*/
21852179
.factory(Reactive, ['$parse', _utils.utils, _mixer.Mixer, function ($parse, $$utils, $Mixer) {
21862180
function $$Reactive() {
2187-
var vm = arguments.length <= 0 || arguments[0] === undefined ? this : arguments[0];
2181+
var vm = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this;
21882182

21892183
// Helps us track changes made in the view model
21902184
vm.$$dependencies = {};
@@ -2323,7 +2317,7 @@ return /******/ (function(modules) { // webpackBootstrap
23232317
Tracker.nonreactive(function () {
23242318
// If a cursor, observe its changes and update acoordingly
23252319
if ($$utils.isCursor(model)) {
2326-
var modelData = undefined;
2320+
var modelData = void 0;
23272321

23282322
if (angular.isUndefined(vm[k])) {
23292323
_this3.$$setValHelper(vm, k, [], false);
@@ -2354,8 +2348,8 @@ return /******/ (function(modules) { // webpackBootstrap
23542348
activeObservation.stop();
23552349
});*/
23562350
} else {
2357-
_this3.$$handleNonCursor(vm, k, model);
2358-
}
2351+
_this3.$$handleNonCursor(vm, k, model);
2352+
}
23592353

23602354
// Notify change and update the view model
23612355
_this3.$$changed(vm, k);
@@ -2367,7 +2361,7 @@ return /******/ (function(modules) { // webpackBootstrap
23672361
$$Reactive.$$setValHelper = function (vm, k, v) {
23682362
var _this4 = this;
23692363

2370-
var watch = arguments.length <= 3 || arguments[3] === undefined ? true : arguments[3];
2364+
var watch = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
23712365

23722366
// If set, reactives property
23732367
if (watch) {

dist/angular-meteor.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-meteor.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/.meteor/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
local

tests/.meteor/.id

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file contains a token that is unique to your project.
2+
# Check it into your repository along with the rest of this directory.
3+
# It can be used for purposes such as:
4+
# - ensuring you don't accidentally deploy one app on top of another
5+
# - providing package authors with aggregated statistics
6+
7+
8j36d8isg0tfvhy1rn

tests/.meteor/packages

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,30 @@
55
# but you can also edit it by hand.
66

77
meteor-base@1.0.4 # Packages every Meteor app needs to have
8-
mongo@1.1.12 # The database Meteor supports right now
9-
reactive-var@1.0.10 # Reactive variable for tracker
10-
jquery@1.11.9 # Helpful client-side library
11-
tracker@1.1.0 # Meteor's client-side reactive programming library
8+
mongo@1.1.14 # The database Meteor supports right now
9+
reactive-var@1.0.11 # Reactive variable for tracker
10+
jquery@1.11.10 # Helpful client-side library
11+
tracker@1.1.1 # Meteor's client-side reactive programming library
1212

13-
standard-minifier-css@1.2.0 # CSS minifier run for production mode
14-
standard-minifier-js@1.2.0 # JS minifier run for production mode
15-
es5-shim@4.6.14 # ECMAScript 5 compatibility for older browsers.
16-
ecmascript@0.5.8 # Enable ECMAScript2015+ syntax in app code
13+
standard-minifier-css@1.3.2 # CSS minifier run for production mode
14+
standard-minifier-js@1.2.1 # JS minifier run for production mode
15+
es5-shim@4.6.15 # ECMAScript 5 compatibility for older browsers.
16+
ecmascript@0.5.9 # Enable ECMAScript2015+ syntax in app code
1717
shell-server@0.2.1 # Server-side component of the `meteor shell` command
1818

1919
insecure@1.0.7 # Allow all DB writes from clients (for prototyping)
2020

21-
check
22-
ejson
23-
session
24-
mongo-id
25-
diff-sequence
26-
observe-sequence
21+
check@1.2.4
22+
ejson@1.0.13
23+
session@1.1.7
24+
mongo-id@1.0.6
25+
diff-sequence@1.0.7
26+
observe-sequence@1.0.14
2727
dburles:mongo-collection-instances@0.3.4
28-
# NB: order below is important.
28+
# NB: order below is important.
2929
practicalmeteor:mocha
3030
dispatch:mocha-phantomjs
3131
angular:angular-mocks@1.4.7
3232
practicalmeteor:sinon
3333
practicalmeteor:chai
34+
babel-runtime

tests/.meteor/release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
METEOR@1.4.1.1
1+
METEOR@1.4.2.1

tests/.meteor/versions

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
allow-deny@1.0.5
2+
angular:angular@1.5.3_1
3+
angular:angular-mocks@1.5.3_1
4+
autoupdate@1.3.12
5+
babel-compiler@6.13.0
6+
babel-runtime@1.0.0
7+
base64@1.0.10
8+
binary-heap@1.0.10
9+
blaze@2.2.0
10+
blaze-tools@1.0.10
11+
boilerplate-generator@1.0.11
12+
caching-compiler@1.1.9
13+
caching-html-compiler@1.0.7
14+
callback-hook@1.0.10
15+
check@1.2.4
16+
coffeescript@1.11.1_3
17+
dburles:mongo-collection-instances@0.3.5
18+
ddp@1.2.5
19+
ddp-client@1.3.2
20+
ddp-common@1.2.8
21+
ddp-server@1.3.12
22+
deps@1.0.12
23+
diff-sequence@1.0.7
24+
dispatch:mocha-phantomjs@0.1.7
25+
dispatch:phantomjs-tests@0.0.5
26+
ecmascript@0.6.0
27+
ecmascript-runtime@0.3.15
28+
ejson@1.0.13
29+
es5-shim@4.6.15
30+
geojson-utils@1.0.10
31+
hot-code-push@1.0.4
32+
html-tools@1.0.11
33+
htmljs@1.0.11
34+
http@1.2.10
35+
id-map@1.0.9
36+
insecure@1.0.7
37+
jquery@1.11.10
38+
lai:collection-extensions@0.2.1_1
39+
livedata@1.0.18
40+
logging@1.1.16
41+
meteor@1.6.0
42+
meteor-base@1.0.4
43+
minifier-css@1.2.15
44+
minifier-js@1.2.15
45+
minimongo@1.0.18
46+
modules@0.7.7
47+
modules-runtime@0.7.7
48+
mongo@1.1.14
49+
mongo-id@1.0.6
50+
npm-mongo@2.2.11_2
51+
observe-sequence@1.0.14
52+
ordered-dict@1.0.9
53+
practicalmeteor:chai@2.1.0_1
54+
practicalmeteor:loglevel@1.2.0_2
55+
practicalmeteor:mocha@2.4.5_6
56+
practicalmeteor:mocha-core@1.0.1
57+
practicalmeteor:sinon@1.14.1_2
58+
promise@0.8.8
59+
random@1.0.10
60+
reactive-dict@1.1.8
61+
reactive-var@1.0.11
62+
reload@1.1.11
63+
retry@1.0.9
64+
routepolicy@1.0.12
65+
session@1.1.7
66+
shell-server@0.2.1
67+
spacebars@1.0.13
68+
spacebars-compiler@1.0.13
69+
standard-minifier-css@1.3.2
70+
standard-minifier-js@1.2.1
71+
templating@1.2.15
72+
templating-compiler@1.2.15
73+
templating-runtime@1.2.15
74+
templating-tools@1.0.5
75+
tmeasday:test-reporter-helpers@0.2.1
76+
tracker@1.1.1
77+
ui@1.0.12
78+
underscore@1.0.10
79+
url@1.0.11
80+
webapp@1.3.12
81+
webapp-hashing@1.0.9

tests/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"dependencies": {
88
"angular": "^1.5.8",
9-
"angular-meteor": "file:../",
10-
"meteor-node-stubs": "~0.2.0"
9+
"angular-meteor": "../",
10+
"meteor-node-stubs": "^0.2.3"
1111
}
1212
}

0 commit comments

Comments
 (0)