# Copyright (C) all contributors # License: AGPL-3.0+ use v5.12; use PublicInbox::TestCommon; # see t/imapd*.t for tests against a live IMAP server use_ok 'PublicInbox::Watch'; my $tmpdir = tmpdir; my $cfg = cfg_new $tmpdir, <new($cfg); is($watch->{imap}->{'imap://example.com/INBOX.a'}->[0]->{name}, 'i', 'watched an inbox'); is($watch->{imap}->{'imap://example.com/INBOX.spam'}, 'watchspam', 'watched spam folder'); done_testing;