hunk.code_window:         let secret = BL.fromStrict $ TE.encodeUtf8 key
           when (BL.length secret < size `div` 8) $
             invalidJwk "Key size too small"
           return $ JWTConfig ktype (fromOctets secret)
  
hunk.labels: keep keep keep replace keep
hunk.after_edit:         return $ JWTConfig ktype (fromOctets secret) cns
  
hunk.file_path: server/src-lib/Hasura/Server/Auth/JWT.hs
hunk.type: replace
file: /* eslint no-unused-vars: 0 */
  /* eslint import/prefer-default-export: 0 */
  
  import { checkToggleButton } from './spec';
  import { testMode } from '../../../helpers/common';
  
  import { setMetaData } from '../../validators/validators';
  
  const setup = () => {
    describe('Setup route', () => {
      it('Visit the index route', () => {
        // Visit the index route
        cy.visit('/data/schema/public');
        cy.wait(7000);
        // Get and set validation metadata
        setMetaData();
      });
    });
  };
  
  export const runMigrationModeTests = () => {
    describe('Migration mode', () => {
      it('Check the toggle button', checkToggleButton);
    });
  };
  
  if (testMode !== 'cli') {
    setup();
    runMigrationModeTests();
  }
  