Add editorconfig, resolve differences

This includes newlines, tabs, among other things.
This commit is contained in:
impinball 2016-06-18 02:59:42 -04:00
parent 80d0a69dab
commit b4fb21475c
90 changed files with 1707 additions and 1701 deletions

View file

@ -10,7 +10,7 @@ o.spec("xhr", function() {
mock = xhrMock()
xhr = new Request(mock, Promise).xhr
})
o.spec("success", function() {
o("works via GET", function(done) {
var s = new Date
@ -119,7 +119,7 @@ o.spec("xhr", function() {
var Entity = function(args) {
return {_id: args.id}
}
mock.$defineRoutes({
"GET /item": function(request) {
return {status: 200, responseText: JSON.stringify([{id: 1}, {id: 2}, {id: 3}])}
@ -133,7 +133,7 @@ o.spec("xhr", function() {
var Entity = function(args) {
return {_id: args.id}
}
mock.$defineRoutes({
"GET /item": function(request) {
return {status: 200, responseText: JSON.stringify({id: 1})}
@ -147,7 +147,7 @@ o.spec("xhr", function() {
var serialize = function(data) {
return "id=" + data.id
}
mock.$defineRoutes({
"GET /item": function(request) {
return {status: 200, responseText: JSON.stringify({body: request.query})}
@ -161,7 +161,7 @@ o.spec("xhr", function() {
var serialize = function(data) {
return "id=" + data.id
}
mock.$defineRoutes({
"POST /item": function(request) {
return {status: 200, responseText: JSON.stringify({body: request.body})}
@ -175,7 +175,7 @@ o.spec("xhr", function() {
var deserialize = function(data) {
return data
}
mock.$defineRoutes({
"GET /item": function(request) {
return {status: 200, responseText: JSON.stringify({test: 123})}
@ -189,7 +189,7 @@ o.spec("xhr", function() {
var deserialize = function(data) {
return data
}
mock.$defineRoutes({
"POST /item": function(request) {
return {status: 200, responseText: JSON.stringify({test: 123})}
@ -203,7 +203,7 @@ o.spec("xhr", function() {
var extract = function(data) {
return JSON.stringify({test: 123})
}
mock.$defineRoutes({
"GET /item": function(request) {
return {status: 200, responseText: ""}
@ -217,7 +217,7 @@ o.spec("xhr", function() {
var extract = function(data) {
return JSON.stringify({test: 123})
}
mock.$defineRoutes({
"POST /item": function(request) {
return {status: 200, responseText: ""}
@ -234,7 +234,7 @@ o.spec("xhr", function() {
}
})
xhr({method: "POST", url: "/item", config: config}).then(done)
function config(xhr) {
o(typeof xhr.setRequestHeader).equals("function")
o(typeof xhr.open).equals("function")
@ -264,4 +264,4 @@ o.spec("xhr", function() {
}).then(done)
})
})
})
})