Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wpscanteam
GitHub Repository: wpscanteam/wpscan
Path: blob/master/spec/app/finders/plugins_spec.rb
486 views
1
# frozen_string_literal: true
2
3
describe WPScan::Finders::Plugins::Base do
4
subject(:plugins) { described_class.new(target) }
5
let(:target) { WPScan::Target.new(url) }
6
let(:url) { 'http://ex.lo/' }
7
8
describe '#finders' do
9
it 'contains the expected finders' do
10
expect(plugins.finders.map { |f| f.class.to_s.demodulize })
11
.to eq %w[UrlsInHomepage UrlsIn404Page HeaderPattern Comment Xpath BodyPattern JavascriptVar KnownLocations]
12
end
13
end
14
end
15
16