Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--format callback indentation bugs #105

Closed
edef1c opened this issue Apr 6, 2015 · 1 comment

Comments

@edef1c
Copy link

commented Apr 6, 2015

Produced from a standard-compliant repo using standard --format. This is the last thing preventing me from using standard --format as a pre-commit hook.

Error: Use JavaScript Standard Style (https://github.com/feross/standard)
  /home/nathan/src/github.com/then/promise/test/resolver-tests.js:56:12: Expected indentation of 12 characters.
  /home/nathan/src/github.com/then/promise/test/resolver-tests.js:101:12: Expected indentation of 12 characters.
  /home/nathan/src/github.com/then/promise/test/resolver-tests.js:142:10: Expected indentation of 10 characters.
diff --git a/test/resolver-tests.js b/test/resolver-tests.js
index 559b5f7..3929b43 100644
--- a/test/resolver-tests.js
+++ b/test/resolver-tests.js
@@ -53,9 +53,9 @@ describe('resolver-tests', function () {
       describe('if promise is resolved', function () {
         it('nothing happens', function (done) {
           var thenable = {then: function (onComplete) {
-            setTimeout(function () {
-              onComplete(sentinel)
-            }, 50)
+              setTimeout(function () {
+                onComplete(sentinel)
+              }, 50)
           }}
           new Promise(function (resolve) {
             process.nextTick(function () {
@@ -98,9 +98,9 @@ describe('resolver-tests', function () {
       describe('if promise is resolved', function () {
         it('nothing happens', function (done) {
           var thenable = {then: function (onComplete) {
-            setTimeout(function () {
-              onComplete(sentinel)
-            }, 50)
+              setTimeout(function () {
+                onComplete(sentinel)
+              }, 50)
           }}
           new Promise(function (resolve, reject) {
             process.nextTick(function () {
@@ -139,9 +139,9 @@ describe('resolver-tests', function () {
     describe('if promise is resolved', function () {
       it('nothing happens', function (done) {
         var thenable = {then: function (onComplete) {
-          setTimeout(function () {
-            onComplete(sentinel)
-          }, 50)
+            setTimeout(function () {
+              onComplete(sentinel)
+            }, 50)
         }}
         new Promise(function (resolve, reject) {
           resolve(thenable)
@feross

This comment has been minimized.

Copy link
Member

commented Apr 6, 2015

@feross feross closed this Apr 6, 2015

@lock lock bot locked as resolved and limited conversation to collaborators May 11, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.