# typed: false
# frozen_string_literal: true

module Webmocks
  module <%= capital_plug_name %>Webmock
    extend T::Sig
    extend T::Helpers

    # TODO: Add webmocks here which are specific to your application
    # For example, if your application interacts with GitHub, you can add webmocks for GitHub here
    #
    # sig { params(state: String).returns(T.untyped) }
    # def assert_requested_user_access_token(state)
    #   assert_requested(:post, "https://github.com/login/oauth/access_token?#{token_query_params(state)}")
    # end

    # sig { params(state: String, valid: T::Boolean, status: Integer).returns(T.untyped) }
    # def stub_request_user_access_token(state, valid: true, status: 200)
    #   response_body = JSON.parse(file_fixture_path("access_token", valid ? "valid.json" : "invalid.json").read).deep_symbolize_keys
    #   stub_request(:post, "https://github.com/login/oauth/access_token?#{token_query_params(state)}")
    #     .to_return(
    #       status: status,
    #       headers: { content_type: "application/json; charset=utf-8" },
    #       body: response_body.to_json,
    #     )
    # end

  end
end