main
 1import Controller from '../../../../app/javascript/controllers/mfa/setup_controller'
 2import { Application } from 'stimulus';
 3
 4describe('mfa--setup', () => {
 5  beforeEach(() => {
 6    fixture.setBase('spec/fixtures')
 7    const el = fixture.load('mfa-setup.html')
 8
 9    const application = new Application();
10    application.router.start();
11    application.dispatcher.start();
12    application.register('mfa--setup', Controller);
13  });
14
15  afterEach(() => {
16    fixture.cleanup();
17  });
18
19  describe("connect", () => {
20    it("displays a QR code representation of the secret", () => {
21      expect($('canvas')).toBeDefined()
22    });
23  });
24});