Tuesday's midterm elections marked two years since Donald Trump's shock election victory – the first test of how his Republican party is faring in the eyes of the American public.

The midterms is the name given to the combination of elections for the US Congress, governorships and other state-wide races that take place every two years.

Before Tuesday, Republicans controlled the House of Representatives and the Senate – the two chambers which make up the US Congress. But a so-called “blue wave” saw Democrats poised to take control of the House.

A liberal base hoping to derail Mr Trump's agenda has energised activists in key races, out-fundraising and out-polling a host of Republican incumbents.

Although Mr Trump is not on the ballot, in many ways the results will be seen as a referendum on his accomplishments and how voters feel about the US president.