とは思ってなかった

didn't think that …

→ と
phrase Rare #28,469
didn't think that … Follows a clause to say that something was unexpected. 思ってなかった is a casual contraction of 思っていなかった.
JA: 彼が来るとは思ってなかった。
EN: I didn't think he would come.

バンドってものが・・・成功するとは思ってなかった?

You didn't think a band could actually make it...?

— ラ・ラ・ランド (2016)

こんなにたくさんの人が来るとは思ってなかったよ。

I didn't expect so many people to show up.

まさかここでトムに会うとは思ってなかった。

I never expected to run into Tom here.

私が居るとは思ってなかった

I didn't think I'd be here.

— スター・トレックII カーンの逆襲 (1982)

お前が俺の所に来るとは思ってなかった

I never thought you'd come to me.

— ラスト、コーション (2007)