@@ -111,14 +111,12 @@ async function run(
111111 nook : true ,
112112 test : noLegacy ,
113113 message : 'Legacy flags are no longer supported. See v1 migration guide.' ,
114- pass : 'ok' ,
115114 fail : `received legacy flags` ,
116115 } ,
117116 {
118117 nook : true ,
119118 test : scope === 'org' || ! ! repoName ,
120119 message : 'When scope=repo, repo name should be the second argument' ,
121- pass : 'ok' ,
122120 fail : 'missing' ,
123121 } ,
124122 {
@@ -127,37 +125,32 @@ async function run(
127125 scope === 'org' ||
128126 ( repoName !== '7' && repoName !== '30' && repoName !== '90' ) ,
129127 message : 'When scope is repo, the second arg should be repo, not time' ,
130- pass : 'ok' ,
131128 fail : 'missing' ,
132129 } ,
133130 {
134131 test : time === '7' || time === '30' || time === '90' ,
135132 message : 'The time filter must either be 7, 30 or 90' ,
136- pass : 'ok' ,
137133 fail : 'invalid range set, see --help for command arg details.' ,
138134 } ,
139135 {
140136 nook : true ,
141137 test : ! file || ! ! json || ! ! markdown ,
142138 message :
143139 'The `--file` flag is only valid when using `--json` or `--markdown`' ,
144- pass : 'ok' ,
145140 fail : 'bad' ,
146141 } ,
147142 {
148143 nook : true ,
149144 test : ! json || ! markdown ,
150145 message :
151146 'The `--json` and `--markdown` flags can not be used at the same time' ,
152- pass : 'ok' ,
153147 fail : 'bad' ,
154148 } ,
155149 {
156150 nook : true ,
157151 test : hasApiToken ,
158152 message :
159153 'You need to be logged in to use this command. See `socket login`.' ,
160- pass : 'ok' ,
161154 fail : 'missing Socket API token' ,
162155 } ,
163156 )
0 commit comments