Skip to content

Commit

Permalink
chore: Run tslint --fix for updated rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Sep 4, 2018
1 parent ec9f561 commit 7eb9fba
Show file tree
Hide file tree
Showing 2 changed files with 246 additions and 310 deletions.
12 changes: 6 additions & 6 deletions test/setReadmeVersions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('setReadmeVersions', () => {
let version: string;
let newReadme: string;

before('init', async() => {
before('init', async () => {
readmeFixturePath = join(__dirname, 'fixtures', 'README.md');
cwd = __dirname;
fixtureOutPath = join(cwd, 'README.md');
Expand All @@ -21,22 +21,22 @@ describe('setReadmeVersions', () => {
await fs.writeFile(fixtureOutPath, readmeFixture);
});

before('run', async() => {
before('run', async () => {
await setReadmeVersions({}, {
cwd,
logger: {
error: function() {
error: function () {
console.error.apply(console, arguments);
},
log: function() {
log: function () {
console.log.apply(console, arguments);
}
},
nextRelease: {version}
});
});

before('read', async() => {
before('read', async () => {
newReadme = await fs.readFile(fixtureOutPath, 'utf8');
});

Expand All @@ -58,7 +58,7 @@ describe('setReadmeVersions', () => {
});
});

after('cleanup', async() => {
after('cleanup', async () => {
try {
await fs.unlink(fixtureOutPath);
} catch {
Expand Down
Loading

0 comments on commit 7eb9fba

Please sign in to comment.