Skip to content

Commit

Permalink
fix prettier command (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitaker-swiftnav committed Dec 18, 2023
1 parent 220f020 commit f3b7f61
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"npm": ">=7"
},
"scripts": {
"format": "prettier --write **/{src,test}",
"format": "prettier --write **/{src,test}/**/*.{js,ts}",
"clean": "rm -rf {.,reporters,zora,assert,pta}/{node_modules,dist,package-lock.json}",
"install:fresh": "npm i && npm i --workspaces",
"install:ci": "npm ci --include=dev",
Expand Down
10 changes: 5 additions & 5 deletions zora/test/samples/no_only_mode.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {test, only} from 'zora';
import { test, only } from 'zora';

test('should not run', t => {
t.fail('I should not run ');
test('should not run', (t) => {
t.fail('I should not run ');
});

only('should run', t => {
t.ok(true, 'I ran');
only('should run', (t) => {
t.ok(true, 'I ran');
});
38 changes: 19 additions & 19 deletions zora/test/samples/no_only_mode_nested.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
import {test, only} from 'zora';
import { test, only } from 'zora';

test('should not run', t => {
t.fail('I should not run ');
test('should not run', (t) => {
t.fail('I should not run ');
});

only('should run', t => {
t.ok(true, 'I ran');
only('should run', (t) => {
t.ok(true, 'I ran');

t.only('keep running', t => {
t.only('keeeeeep running', t => {
t.ok(true, ' I got there');
});
t.only('keep running', (t) => {
t.only('keeeeeep running', (t) => {
t.ok(true, ' I got there');
});
});

t.test('should not run', t => {
t.fail('shouldn ot run');
});
t.test('should not run', (t) => {
t.fail('shouldn ot run');
});
});

only('should run but nothing inside', t => {
t.test('will not run', t => {
t.fail('should not run');
});
t.test('will not run', t => {
t.fail('should not run');
});
only('should run but nothing inside', (t) => {
t.test('will not run', (t) => {
t.fail('should not run');
});
t.test('will not run', (t) => {
t.fail('should not run');
});
});

0 comments on commit f3b7f61

Please sign in to comment.