Skip to content

Commit

Permalink
test(norest): update install command in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
line-o committed May 14, 2024
1 parent b39ebbf commit b3f9126
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/norest/package/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function cleanup (t) {

test('package install without REST', async function (t) {
t.test('falls back to XMLRPC, succeeds', async function (st) {
const { stderr, stdout } = await run('xst', ['package', 'install', 'spec/fixtures/test-lib.xar'], asAdmin)
const { stderr, stdout } = await run('xst', ['package', 'install', 'local', 'spec/fixtures/test-lib.xar'], asAdmin)
if (stderr) {
st.fail(stderr)
st.end()
Expand All @@ -33,7 +33,7 @@ test('package install without REST', async function (t) {
})

t.test('succeeds when enforcing upload over XMLRPC', async function (st) {
const { stderr, stdout } = await run('xst', ['package', 'install', '--rpc', 'spec/fixtures/test-lib.xar'], asAdmin)
const { stderr, stdout } = await run('xst', ['package', 'install', 'local', '--rpc', 'spec/fixtures/test-lib.xar'], asAdmin)
if (stderr) {
st.fail(stderr)
st.end()
Expand All @@ -48,7 +48,7 @@ test('package install without REST', async function (t) {
})

t.test('fails with enforced upload over REST', async function (st) {
const { stderr, stdout } = await run('xst', ['package', 'install', '--rest', 'spec/fixtures/test-lib.xar'], asAdmin)
const { stderr, stdout } = await run('xst', ['package', 'install', 'local', '--rest', 'spec/fixtures/test-lib.xar'], asAdmin)

st.equal(stdout, 'Install test-lib.xar on https://localhost:8443\n')

Expand Down

0 comments on commit b3f9126

Please sign in to comment.