Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wpscanteam
GitHub Repository: wpscanteam/wpscan
Path: blob/master/spec/lib/db/fingerprints_spec.rb
486 views
1
# frozen_string_literal: true
2
3
describe WPScan::DB::Fingerprints do
4
describe '#unique_fingerprints' do
5
# Handled in #wp_unique_fingerprints
6
end
7
8
describe '.wp_fingerprints' do
9
it 'returns the expected value' do
10
expect(described_class.wp_fingerprints).to eql(
11
'path-1' => {
12
'hash-1' => %w[4.0 3.8],
13
'hash-2' => ['4.4']
14
},
15
'path-2' => {
16
'hash-3' => %w[3.8.1 3.8.2 3.9.1]
17
}
18
)
19
end
20
end
21
22
describe '.wp_unique_fingerprints' do
23
it 'returns the expected value' do
24
expect(described_class.wp_unique_fingerprints).to eql('path-1' => { 'hash-2' => '4.4' })
25
end
26
end
27
end
28
29