Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Reformat and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed Jan 13, 2019
1 parent b8a2226 commit 08c60d8
Show file tree
Hide file tree
Showing 59 changed files with 135,829 additions and 1,288 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# http://editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 120
trim_trailing_whitespace = true

[*.md]
max_line_length = 0
trim_trailing_whitespace = false

[COMMIT_EDITMSG]
max_line_length = 0
15 changes: 15 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
workflow "Hyperion" {
on = "push"
resolves = ["Yarn tests"]
}

action "Yarn install" {
uses = "docker://node:8"
args = "yarn install"
}

action "Yarn tests" {
uses = "docker://node:8"
args = "yarn test"
needs = ["Yarn install"]
}
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
singleQuote: true
trailingComma: es5
printWidth: 120
6 changes: 5 additions & 1 deletion __tests__/process/fixtures/0001.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
],
"id": "https://example.org/iiif/book1/manifest",
"type": "Manifest",
"label": { "en": [ "Image 1" ] },
"label": {
"en": [
"Image 1"
]
},
"items": [
{
"id": "https://example.org/iiif/book1/canvas/p1",
Expand Down
10 changes: 10 additions & 0 deletions __tests__/process/fixtures/0001.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Manifest } from '../../../src';
import json from './0001.json';

describe('process/fixtures/0001', () => {
test('fixture is correctly typed', () => {
const manifest: Manifest = json as Manifest;

expect(manifest).toBeDefined();
});
});
Loading

0 comments on commit 08c60d8

Please sign in to comment.