#!/bin/bash
# smoke-test: try running notifymuch
exec 2>&1
set -e

test_help_output() {
	set +e
	out=$(notifymuch --help 2>&1)
	code=$?
	set -e
	# notifymuch set its exit code to 0
	assertEquals 0 "${code}"
	# notifymuch failed to connect with below message (but execution succeeded)
	assertContains \
		'usage: notifymuch [-h]' \
		"${out}"
}

# shellcheck disable=SC1091
. shunit2
