Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wpscanteam
GitHub Repository: wpscanteam/wpscan
Path: blob/master/spec/app/finders/plugins/javascript_var_spec.rb
2169 views
1
# frozen_string_literal: true
2
3
describe WPScan::Finders::Plugins::JavascriptVar do
4
it_behaves_like WPScan::Finders::DynamicFinder::WpItems::Finder do
5
subject(:finder) { described_class.new(target) }
6
let(:target) { WPScan::Target.new(url) }
7
let(:url) { 'http://wp.lab/' }
8
let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
9
10
let(:expected_all) { df_expected_all['plugins'] }
11
let(:item_class) { WPScan::Model::Plugin }
12
end
13
end
14
15