Lines Matching refs:result

40     result: () => mock.joinedOutput(),
72 const { profile, result } = await mockProfile(t, { npmProfile: defaultNpmProfile })
75 t.matchSnapshot(result(), 'should output table with contents')
79 const { profile, result } = await mockProfile(t, {
86 t.same(JSON.parse(result()), userProfile, 'should output json profile result')
90 const { profile, result } = await mockProfile(t, {
96 t.matchSnapshot(result(), 'should output all profile info as parseable result')
100 const { profile, result } = await mockProfile(t, {
106 t.matchSnapshot(result(), 'should output all profile info with color result')
118 const { profile, result } = await mockProfile(t, { npmProfile })
121 t.matchSnapshot(result(), 'should output expected profile values')
134 const { profile, result } = await mockProfile(t, { npmProfile })
138 t.matchSnapshot(result(), 'should output table with contents')
151 const { profile, result } = await mockProfile(t, { npmProfile })
155 t.matchSnapshot(result(), 'should output table with contents')
167 const { profile, result } = await mockProfile(t, { npmProfile })
171 t.equal(result(), 'foo', 'should output value result')
175 const { profile, result } = await mockProfile(t, {
183 JSON.parse(result()),
185 'should output json profile result ignoring args filter'
190 const { profile, result } = await mockProfile(t, {
197 t.matchSnapshot(result(), 'should output parseable result value')
209 const { profile, result } = await mockProfile(t, {
214 t.matchSnapshot(result(), 'should output all keys')
219 const { profile, result } = await mockProfile(t, {
226 t.same(JSON.parse(result()), userProfile, 'should output json profile result and ignore args')
231 const { profile, result } = await mockProfile(t, {
238 t.matchSnapshot(result(), 'should output parseable profile value results')
242 const { profile, result } = await mockProfile(t, {
248 t.matchSnapshot(result(), 'should output all keys')
313 const { profile, result } = await mockProfile(t, {
318 t.equal(result(), 'Set fullname to Lorem Ipsum', 'should output set key success msg')
326 const { profile, result } = await mockProfile(t, {
334 JSON.parse(result()),
346 const { profile, result } = await mockProfile(t, {
353 t.matchSnapshot(result(), 'should output parseable set key success msg')
379 const { profile, result } = await mockProfile(t, {
384 t.equal(result(), 'Set email to foo@npmjs.com', 'should output set key success msg')
427 const { profile, result } = await mockProfile(t, {
434 t.equal(result(), 'Set password', 'should output set password success msg')
468 const { profile, result, logs } = await mockProfile(t, {
481 t.equal(result(), 'Set password', 'should output set password success msg')
639 const { npm, profile, result } = await mockProfile(t, {
660 result(),
740 const { npm, profile, result } = await mockProfile(t, {
754 t.matchSnapshot(result(), 'should output 2fa enablement success msgs')
823 const { npm, profile, result } = await mockProfile(t, {
836 result(),
867 const { npm, profile, result } = await mockProfile(t, {
879 result(),
910 const { npm, profile, result } = await mockProfile(t, {
921 result(),
939 const { profile, result } = await mockProfile(t, {
944 t.equal(result(), 'Two factor authentication not enabled.',
985 const { profile, result } = await mockProfile(t, {
991 t.equal(result(), 'Two factor authentication disabled.', 'should output already disabled msg')
999 const { profile, result } = await mockProfile(t, {
1007 t.same(JSON.parse(result()), { tfa: false }, 'should output json already disabled msg')
1015 const { profile, result } = await mockProfile(t, {
1023 t.equal(result(), 'tfa\tfalse', 'should output parseable already disabled msg')
1057 const { profile, result } = await mockProfile(t, {
1065 t.equal(result(), 'Two factor authentication disabled.', 'should output already disalbed msg')