[whitespace][xs]: correct indentation issues introduced in b3a71e82cc.
This commit is contained in:
@@ -12,6 +12,7 @@ this.recline.Model = this.recline.Model || {};
|
||||
my.Dataset = Backbone.Model.extend({
|
||||
__type__: 'Dataset',
|
||||
initialize: function(options) {
|
||||
console.log(options);
|
||||
this.currentDocuments = new my.DocumentList();
|
||||
this.docCount = null;
|
||||
this.backend = null;
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
(function ($) {
|
||||
module("Dataset");
|
||||
|
||||
module("Dataset");
|
||||
|
||||
test('new Dataset', function () {
|
||||
test('new Dataset', function () {
|
||||
var datasetId = 'test-dataset';
|
||||
var metadata = {
|
||||
title: 'My Test Dataset'
|
||||
@@ -66,10 +65,10 @@
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// TODO: move to fixtures
|
||||
var webstoreSchema = {
|
||||
// TODO: move to fixtures
|
||||
var webstoreSchema = {
|
||||
"count": 3,
|
||||
"data": [
|
||||
{
|
||||
@@ -104,9 +103,9 @@
|
||||
"name": "values_url"
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
||||
|
||||
webstoreData = {
|
||||
webstoreData = {
|
||||
"count": null,
|
||||
"data": [
|
||||
{
|
||||
@@ -142,9 +141,9 @@
|
||||
"name": "amount"
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
||||
|
||||
test('Webstore Backend', function() {
|
||||
test('Webstore Backend', function() {
|
||||
var dataset = new recline.Model.Dataset();
|
||||
dataset.backendConfig = {
|
||||
type: 'webstore',
|
||||
@@ -182,10 +181,10 @@
|
||||
// });
|
||||
});
|
||||
$.ajax.restore();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
var dataProxyData = {
|
||||
var dataProxyData = {
|
||||
"data": [
|
||||
[
|
||||
"1",
|
||||
@@ -246,9 +245,9 @@
|
||||
"length": null,
|
||||
"max_results": 10,
|
||||
"url": "http://webstore.thedatahub.org/rufuspollock/gold_prices/data.csv"
|
||||
};
|
||||
};
|
||||
|
||||
test('DataProxy Backend', function() {
|
||||
test('DataProxy Backend', function() {
|
||||
// needed only if not stubbing
|
||||
// stop();
|
||||
var dataset = new recline.Model.Dataset();
|
||||
@@ -283,10 +282,10 @@
|
||||
});
|
||||
});
|
||||
$.ajax.restore();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
var sample_gdocs_spreadsheet_data = {
|
||||
var sample_gdocs_spreadsheet_data = {
|
||||
"feed": {
|
||||
"category": [
|
||||
{
|
||||
@@ -450,12 +449,9 @@
|
||||
},
|
||||
"version": "1.0",
|
||||
"encoding": "UTF-8"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
test("GDoc Backend", function() {
|
||||
test("GDoc Backend", function() {
|
||||
var dataset = new recline.Model.Dataset();
|
||||
dataset.backendConfig = {
|
||||
type: 'gdocs',
|
||||
@@ -469,7 +465,6 @@
|
||||
var partialUrl = 'spreadsheets.google.com';
|
||||
if (options.indexOf(partialUrl) != -1) {
|
||||
cb(sample_gdocs_spreadsheet_data)
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -486,9 +481,6 @@
|
||||
});
|
||||
});
|
||||
$.getJSON.restore();
|
||||
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
})(this.jQuery);
|
||||
|
||||
Reference in New Issue
Block a user