For a junior dev, the work is done as soon as "it works." For a senior dev, the work continues until it works, it is tested, and it is documented.
The junior devs think about themselves and how they can make themselves more successful. Senior devs think about how to make other developers more successful through the work they do.
—Steven Foote