;;;; SPDX-FileCopyrightText: Atlas Engineer LLC
;;;; SPDX-License-Identifier: BSD-3-Clause

(in-package :nyxt/tests)

(define-test toggle-certificate-exception-mode ()
  (let ((buffer (make-instance 'network-and-modable-buffer)))
    (with-current-buffer buffer
      (assert-true (enable-modes* 'nyxt/mode/certificate-exception:certificate-exception-mode
                                  buffer))
      (assert-true (disable-modes* 'nyxt/mode/certificate-exception:certificate-exception-mode
                                   buffer)))))
