Browse Source

Revert "Remove tests"

This reverts commit 8c9bd26f4d.
pull/2694/head
Manny Dinssa 8 months ago
parent
commit
45cf14533e
  1. 4
      spec/models/form/sales/questions/uprn_confirmation_spec.rb
  2. 4
      spec/models/form/sales/questions/uprn_known_spec.rb

4
spec/models/form/sales/questions/uprn_confirmation_spec.rb

@ -23,6 +23,10 @@ RSpec.describe Form::Sales::Questions::UprnConfirmation, type: :model do
expect(question.derived?(nil)).to be false
end
it "has the correct unanswered_error_message" do
expect(question.unanswered_error_message).to eq("You must answer is this the right address?")
end
describe "notification_banner" do
context "when address is not present" do
it "returns nil" do

4
spec/models/form/sales/questions/uprn_known_spec.rb

@ -34,6 +34,10 @@ RSpec.describe Form::Sales::Questions::UprnKnown, type: :model do
expect(question.conditional_for).to eq({ "uprn" => [1] })
end
it "has the correct unanswered_error_message" do
expect(question.unanswered_error_message).to eq("You must answer UPRN known?")
end
it "has the correct hidden_in_check_answers" do
expect(question.hidden_in_check_answers).to eq({
"depends_on" => [

Loading…
Cancel
Save