The election was a test for the small eastern European country’s support for neighbouring Ukraine in its war with Russia.