Skip to content

Commit

Permalink
Remove tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aldeed committed Dec 5, 2016
1 parent f1a2252 commit ce5dfff
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 1,549 deletions.
15 changes: 0 additions & 15 deletions .jshintrc
Expand Up @@ -146,21 +146,6 @@
"SimpleSchema": false,
"books": true,
"booksSchema": true,
"autoValues": true,
"avSchema": true,
"noSchemaCollection": true,
"Document": true,
"defaultValues": true,
"BlackBox": true,
"defaultValuesSchema": true,
"contextCheck": true,
"contextCheckSchema": true,
"RES": true,
"RESSchema": true,
"booksSubscription": true,
"partOne": true,
"partTwo": true,
"partThree": true,
"LocalCollection": false
}
}
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

23 changes: 0 additions & 23 deletions package.js
Expand Up @@ -21,26 +21,3 @@ Package.onUse(function(api) {
'aldeed:schema-deny',
]);
});

Package.onTest(function(api) {
api.use('aldeed:collection2');
api.use('aldeed:simple-schema@2.0.0-rc.1');
api.use('tinytest@1.0.0');
api.use('test-helpers@1.0.0');
api.use('underscore@1.0.0');
api.use('ejson@1.0.0');
api.use('ordered-dict@1.0.0');
api.use('random@1.0.0');
api.use('deps@1.0.0');
api.use('minimongo@1.0.0');

api.addFiles([
'tests/schemas.js',
'tests/collections.js',
'tests/pubsub.js',
'tests/security.js',
'tests/tests.js',
'tests/tests-deny.js',
'tests/tests-indexing.js'
]);
});
88 changes: 1 addition & 87 deletions tests/collections.js
@@ -1,7 +1,6 @@
/* books */

books = new Mongo.Collection("books");
books.attachSchema(booksSchema);


// Add one unique index outside of C2
if (Meteor.isServer) {
Expand All @@ -12,88 +11,3 @@ if (Meteor.isServer) {
}
books._ensureIndex({field1: 1, field2: 1}, {unique: true, sparse: true});
}

/* autoValues */

autoValues = new Mongo.Collection("autoValues");
autoValues.attachSchema(avSchema);

/* noSchemaCollection */

noSchemaCollection = new Mongo.Collection('noSchema', {
transform: function(doc) {
doc.userFoo = "userBar";
return doc;
}
});

/* BlackBox */

Document = function(data) {
_.extend(this, data);
};

Document.prototype = {
constructor: Document,
toString: function() {
return this.toJSONValue.toString();
},
clone: function() {
return new Document(this);
},
equals: function(other) {
if (!(other instanceof Document))
return false;
return EJSON.stringify(this) === EJSON.stringify(other);
},
typeName: function() {
return "Document";
},
toJSONValue: function() {
return _.extend({}, this);
}
};

BlackBox = new Mongo.Collection('black', {
transform: function(doc) {
doc.data = new Document(doc.data);
return doc;
}
});

BlackBox.attachSchema(new SimpleSchema({
name: {
type: String
},
data: {
type: Document,
blackbox: true
}
}), {transform: true});

/* defaultValues */

defaultValues = new Mongo.Collection("dv");
defaultValues.attachSchema(defaultValuesSchema);

/* contextCheck */

contextCheck = new Mongo.Collection("contextCheck");
contextCheck.attachSchema(contextCheckSchema);

/* RES */

RES = new Mongo.Collection("RES");
RES.attachSchema(RESSchema);

/* Products */

products = new Mongo.Collection("TestProducts");
products.attachSchema(Product, { selector: { type: 'simple' } });
products.attachSchema(ProductVariant, { selector: { type: 'variant' } });

/* Extended Products */
extendedProducts = new Mongo.Collection("ExtendedProducts");
extendedProducts.attachSchema(Product, {selector: {type: 'simple'}});
extendedProducts.attachSchema(ProductVariant, {selector: {type: 'variant'}});
extendedProducts.attachSchema(ExtendedProduct, {selector: {type: 'simple'}});
18 changes: 0 additions & 18 deletions tests/pubsub.js

This file was deleted.

0 comments on commit ce5dfff

Please sign in to comment.