When the clause behaves as a subject, it is followed by a verb.
When the clause behaves as an object, it is preceded by a verb.
To confirm if it is a noun clause, replace the dependent clause with a pronoun (he, she, it, they, that, there, etc.)
For example: She didn’t expect that she would come first in the class.
Let’s replace the dependent clause by ‘it’. → She didn’t expect it. Makes sense?
Apply the same trick on the following sentence and see if it makes sense.