Skip to content

Commit

Permalink
Update tslint.json
Browse files Browse the repository at this point in the history
  • Loading branch information
devonzuegel committed Dec 29, 2016
1 parent e921621 commit 098ff97
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
24 changes: 12 additions & 12 deletions src/app/loaders/tagged-prose-loader.test.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import * as React from 'react';
import * as R from 'ramda';
import { expect } from 'chai';
const md = require('./example.md?tagged-prose').default;
import * as React from 'react'
import * as R from 'ramda'
import { expect } from 'chai'
const md = require('./example.md?tagged-prose').default

describe('Tagged Prose Loader', () => {
it('Returns the expected keys', () => {
expect(R.keys(md)).eql([ 'refund_process', 'ach_payment_pending' ]);
});
expect(R.keys(md)).eql([ 'refund_process', 'ach_payment_pending' ])
})

it('Generates FAQ components for #refund_process', () => {
const question = "I've returned a purchase. How does the refund process work?";
const question = "I've returned a purchase. How does the refund process work?"
const answer = (
"Returns are subject to the merchant's return policy. As soon as the merchant " +
"processes your return, Affirm will record the refund. If you receive a full " +
'processes your return, Affirm will record the refund. If you receive a full ' +
"refund, you'll no longer need to make payments."
);
)

expect(md.refund_process).eql({
name: 'refund_process',
question: <div>{question}</div>,
answer: <div>{answer}</div>,
text: { question, answer },
});
});
});
})
})
})
5 changes: 3 additions & 2 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
"extends": ["tslint:latest", "tslint-react"],
"rules": {
"indent": [ true, "spaces" ],
"quotemark": [ true, "single", "jsx-double" ],
"quotemark": [ true, "single", "jsx-double", "avoid-escape" ],
"trailing-comma": [true, { "multiline": "always", "singleline": "never" }],
"no-var-requires": false,
"ordered-imports": false,
"no-unused-variable": [true, "react"],
"member-ordering": [false],
"object-literal-sort-keys": false,
"no-shadowed-variable": false,
"no-console": [false],
"semicolon": [true, "always"]
"semicolon": [true, "never"]
}
}

0 comments on commit 098ff97

Please sign in to comment.