This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added TSLint and conformed to it. Updated packages.
- Loading branch information
1 parent
fa2062e
commit b8cf909
Showing
7 changed files
with
53 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
Object.defineProperty(exports, "__esModule", {value: true}); | ||
var chai_1 = require("chai"); | ||
var __1 = require("./.."); | ||
var risk_json = require('../risk'); | ||
it('lists ethnicities', function () { | ||
var ethnicity_list = __1.list_ethnicities(risk_json); | ||
chai_1.expect(ethnicity_list).to.be.an.instanceof(Array); | ||
chai_1.expect(ethnicity_list).to.be.eql([ | ||
{ olmsted: ['White', 'German', 'Norwegian', 'Irish', 'English'] }, | ||
{ framingham: ['White', 'England', 'Scotland', 'Wales', 'Ireland', 'Italy', 'Canadian', 'Europe'] }, | ||
{ barbados: ['Black', 'African', 'Afro-Barbadian', 'Mulatto', 'Mixed'] } | ||
{olmsted: ['White', 'German', 'Norwegian', 'Irish', 'English']}, | ||
{framingham: ['White', 'England', 'Scotland', 'Wales', 'Ireland', 'Italy', 'Canadian', 'Europe']}, | ||
{barbados: ['Black', 'African', 'Afro-Barbadian', 'Mulatto', 'Mixed']} | ||
]); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"defaultSeverity": "error", | ||
"extends": [ | ||
"tslint:recommended" | ||
], | ||
"jsRules": {}, | ||
"rules": { | ||
"quotemark": [ | ||
true, | ||
"single" | ||
], | ||
"curly": false, | ||
"trailing-comma": false, | ||
"no-string-literal": false, | ||
"variable-name": false, | ||
"object-literal-sort-keys": false, | ||
"arrow-parens": false, | ||
"ordered-imports": false | ||
}, | ||
"rulesDirectory": [] | ||
} |