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

(in-package :nyxt/tests)

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

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

(in-package :nyxt/tests)

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