Skip to content

Commit

Permalink
Fix up gluegun version and colors and all deps upgraded (#164) 👍
Browse files Browse the repository at this point in the history
* update dependencies

* updated types

* switch from color to colors

* fix to work with latest gluegun

* update tests
  • Loading branch information
GantMan authored Jan 19, 2018
1 parent c32b5c0 commit dafa03f
Show file tree
Hide file tree
Showing 8 changed files with 1,284 additions and 456 deletions.
4 changes: 2 additions & 2 deletions __tests__/command_helpers/checkCLIForUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('checkCLIForUpdates', () => {
beforeEach(() => {
rule.binary = 'yarn'
context.print = {
color: {
colors: {
green: jest.fn(string => string),
},
}
Expand All @@ -38,7 +38,7 @@ describe('checkCLIForUpdates', () => {

const result = await checkCLIForUpdates(rule, context)
expect(result).toEqual("Setting yarn to '1.0'")
expect(context.print.color.green).toHaveBeenCalled()
expect(context.print.colors.green).toHaveBeenCalled()
})

it('does nothing if there was no original semver', async () => {
Expand Down
1 change: 1 addition & 0 deletions __tests__/schema/validateExampleSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Ajv from 'ajv'
test('solidarity.example.json fits local schema', () => {
const ajv = new Ajv()
const localSchema = require('../../solidaritySchema.json')

const solidarityExample = require('../../.solidarity.example.json')
const valid = ajv.validate(localSchema, solidarityExample)
expect(valid).toBe(true)
Expand Down
Loading

0 comments on commit dafa03f

Please sign in to comment.