Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Re-enable tests (#2406)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-hanson authored and adidahiya committed Mar 27, 2017
1 parent 39b3a3d commit b382956
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/configurationTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
import { IOptions } from "./../src/language/rule/rule";
import { createTempFile } from "./utils";

describe.only("Configuration", () => {
describe("Configuration", () => {
describe("parseConfigFile", () => {
it("parses empty config", () => {
const rawConfig = {
Expand Down
3 changes: 2 additions & 1 deletion test/executable/executableTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ describe("Executable", function(this: Mocha.ISuiteCallbackContext) {
});

describe("--type-check", () => {
it("exits with code 1 if --project is not passed", (done) => {
// TODO: #2405
it.skip("exits with code 1 if --project is not passed", (done) => {
execCli(["--type-check"], (err) => {
assert.isNotNull(err, "process should exit with error");
assert.strictEqual(err.code, 2, "error code should be 2");
Expand Down
3 changes: 2 additions & 1 deletion test/formatters/tapFormatterTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ describe("TAP Formatter", () => {
formatter = new Formatter();
});

it("formats failures", () => {
// TODO: #2329
it.skip("formats failures", () => {
const maxPosition = sourceFile.getFullWidth();

const failures = [
Expand Down
6 changes: 4 additions & 2 deletions test/ruleLoaderTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ describe("Rule Loader", () => {
const srcRulesDir = "src/rules";
const testRulesDir = "test/rules";

it("loads core rules", () => {
// TODO: #2404
it.skip("loads core rules", () => {
const validConfiguration: IOptions[] = [
{ ruleName: "class-name", ruleArguments: [], ruleSeverity: "error", disabledIntervals: [] },
{ ruleName: "eofline", ruleArguments: [], ruleSeverity: "error", disabledIntervals: [] },
Expand Down Expand Up @@ -75,7 +76,8 @@ describe("Rule Loader", () => {
assert.equal(rules.length, 1);
});

it("works with rulesDirectory argument as an Array", () => {
// TODO: #2404
it.skip("works with rulesDirectory argument as an Array", () => {
const validConfiguration: IOptions[] = [
{ ruleName: "class-name", ruleArguments: [], ruleSeverity: "error", disabledIntervals: [] },
{ ruleName: "eofline", ruleArguments: [], ruleSeverity: "error", disabledIntervals: [] },
Expand Down
5 changes: 5 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
},
"extends": "tslint:latest",
"rules": {
"ban": [true,
["describe", "only"],
["it", "only"]
],

"callable-types": true,
"interface-name": false,
"interface-over-type-literal": true,
Expand Down

0 comments on commit b382956

Please sign in to comment.